diff options
Diffstat (limited to 'handlers/all.py')
| -rw-r--r-- | handlers/all.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers/all.py b/handlers/all.py index 10ba92d..6661f47 100644 --- a/handlers/all.py +++ b/handlers/all.py | |||
| @@ -5,7 +5,7 @@ from aiogram import types as t | |||
| 5 | @dp.errors_handler() | 5 | @dp.errors_handler() |
| 6 | async def errors_handler(upd: t.Update, err: Exception): | 6 | async def errors_handler(upd: t.Update, err: Exception): |
| 7 | txt = "Я хз что произошло, но да \n" | 7 | txt = "Я хз что произошло, но да \n" |
| 8 | txt += f" {err.__class__.__name__}: {' '.join(err.args)}" | 8 | txt += f" {err.__class__.__name__}: {' '.join(map(str, err.args))}" |
| 9 | 9 | ||
| 10 | if upd.message: | 10 | if upd.message: |
| 11 | await upd.message.answer(txt) | 11 | await upd.message.answer(txt) |
