From 6375e10ca1357dcefd8cc9c06a7251375d30bc8e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 10 Feb 2019 14:48:38 +0100 Subject: [PATCH] Pycharm strikes again --- telegrambot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telegrambot.py b/telegrambot.py index d501e987..000b4f53 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -510,6 +510,7 @@ def on_callback_query(bot: telegram.Bot, update: telegram.Update): sentry.captureException() finally: try: + # noinspection PyUnboundLocalVariable session.close() except Exception: pass