From 67e3774e8ef59af54b6b71ec69e5cc291bf218bc Mon Sep 17 00:00:00 2001 From: _run Date: Sat, 8 Jul 2023 23:23:23 +0500 Subject: [PATCH] Fix issue with post_process in async not receiving the error --- telebot/async_telebot.py | 1 + 1 file changed, 1 insertion(+) 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: