mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #2008 from coder2020official/middleware
Fix issue with post_process in async not receiving the error
This commit is contained in:
commit
75d3fa2eba
@ -536,6 +536,7 @@ class AsyncTeleBot:
|
|||||||
if not isinstance(result, ContinueHandling):
|
if not isinstance(result, ContinueHandling):
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
handler_error = e
|
||||||
if self.exception_handler:
|
if self.exception_handler:
|
||||||
self.exception_handler.handle(e)
|
self.exception_handler.handle(e)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user