diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index 72e7ad4..981ad25 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -536,6 +536,7 @@ class AsyncTeleBot: if not isinstance(result, ContinueHandling): break except Exception as e: + handler_error = e if self.exception_handler: self.exception_handler.handle(e) else: