Skip to content

Commit 67e3774

Browse files
Fix issue with post_process in async not receiving the error
1 parent af3a980 commit 67e3774

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎telebot/async_telebot.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ async def _run_middlewares_and_handlers(self, message, handlers, middlewares, up
536536
if not isinstance(result, ContinueHandling):
537537
break
538538
except Exception as e:
539+
handler_error = e
539540
if self.exception_handler:
540541
self.exception_handler.handle(e)
541542
else:

0 commit comments

Comments
 (0)