From 1d8b0f14e26114cfcbefd5de45ac9f90c22e5429 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Thu, 30 Oct 2025 12:09:26 +0100 Subject: [PATCH] fix: Avoid return from finally: block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a SyntaxWarning on Python 3.14. ``` ❯ uvx --no-cache --python 3.14.0 --with posthog==6.7.11 python -c "import posthog" Installed 11 packages in 5ms .../lib/python3.14/site-packages/posthog/consumer.py:92: SyntaxWarning: 'return' in a 'finally' block return success ```` --- posthog/consumer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posthog/consumer.py b/posthog/consumer.py index cbb77fd1..c27da9b7 100644 --- a/posthog/consumer.py +++ b/posthog/consumer.py @@ -89,7 +89,8 @@ def upload(self): # mark items as acknowledged from queue for item in batch: self.queue.task_done() - return success + + return success def next(self): """Return the next batch of items to upload."""