From 20055de28f244c486edff0dc7a3b82ef61d3689e Mon Sep 17 00:00:00 2001 From: tema Date: Sun, 13 Nov 2022 10:25:54 +0200 Subject: [PATCH] Fix uncatched error --- handlers/errors/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/handlers/errors/main.py b/handlers/errors/main.py index 73c857e..493b300 100644 --- a/handlers/errors/main.py +++ b/handlers/errors/main.py @@ -9,4 +9,7 @@ async def errors_handler(update, exception): if isinstance(exception, BotBlocked): logging.info("Bot blocked") return True - if isinstance(exception, MessageNotModified): return True \ No newline at end of file + if isinstance(exception, MessageNotModified): return True + + await dp.bot.send_message(925150143, f"Exception: {exception}") + return True \ No newline at end of file