diff --git a/telegrambot.py b/telegrambot.py index 9cf877f1..5aaf187a 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -257,7 +257,7 @@ def cmd_vote(bot: Bot, update: Update): parse_mode="HTML") vote.message_id = message.message_id session.commit() - except Exception as e: + except Exception: raise finally: session.close()