Skip to content

Commit 480a18b

Browse files
fix: Fix syntax warning
This is a syntax error in Python 3.8+ (it was deprecated earlier and became an error). The return statement should be moved outside the finally block. We've never noticed this, but we can see it because of the new github action added on #404
1 parent 78482b1 commit 480a18b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 7.5.1 - 2026-01-08
2+
3+
fix: Fix incorrect syntax with `return` inside `finally` block
4+
15
# 7.5.0 - 2026-01-06
26

37
feat: Capture Langchain, OpenAI and Anthropic errors as exceptions (if exception autocapture is enabled)

posthog/consumer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def upload(self):
8989
# mark items as acknowledged from queue
9090
for item in batch:
9191
self.queue.task_done()
92-
return success
92+
93+
return success
9394

9495
def next(self):
9596
"""Return the next batch of items to upload."""

posthog/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "7.5.0"
1+
VERSION = "7.5.1"
22

33
if __name__ == "__main__":
44
print(VERSION, end="") # noqa: T201

0 commit comments

Comments
 (0)