1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fix example on chat_member, fix middleware-exception for async

This commit is contained in:
coder2020official
2022-03-08 12:07:00 +05:00
parent 477d02468d
commit 1cdf9640d7
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ class AsyncTeleBot:
except Exception as e:
handler_error = e
if not middleware:
if not middlewares:
if self.exception_handler:
return self.exception_handler.handle(e)
logging.error(str(e))