Fix uncatched error

This commit is contained in:
tema 2022-11-13 10:25:54 +02:00
parent 1a51ffa070
commit 20055de28f
Signed by: tema
GPG Key ID: 21FDB6D162488F6F

View File

@ -9,4 +9,7 @@ async def errors_handler(update, exception):
if isinstance(exception, BotBlocked): if isinstance(exception, BotBlocked):
logging.info("Bot blocked") logging.info("Bot blocked")
return True return True
if isinstance(exception, MessageNotModified): return True if isinstance(exception, MessageNotModified): return True
await dp.bot.send_message(925150143, f"Exception: {exception}")
return True