diff options
| -rw-r--r-- | handlers/all.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/handlers/all.py b/handlers/all.py index 6661f47..1947604 100644 --- a/handlers/all.py +++ b/handlers/all.py | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | import logging | ||
| 2 | import traceback | ||
| 3 | |||
| 1 | from shared.instances import dp | 4 | from shared.instances import dp |
| 2 | from aiogram import types as t | 5 | from aiogram import types as t |
| 3 | 6 | ||
| @@ -13,4 +16,7 @@ async def errors_handler(upd: t.Update, err: Exception): | |||
| 13 | await upd.callback_query.answer(txt) | 16 | await upd.callback_query.answer(txt) |
| 14 | else: | 17 | else: |
| 15 | return | 18 | return |
| 19 | |||
| 20 | logging.error(traceback.format_exc()) | ||
| 21 | |||
| 16 | return True | 22 | return True |
