Fix issue with post_process in async not receiving the error

This commit is contained in:
_run 2023-07-08 23:23:23 +05:00 committed by GitHub
parent af3a98057f
commit 67e3774e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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: