diff options
| author | Igor <50257429+igorechek06@users.noreply.github.com> | 2021-10-15 14:32:19 +0900 |
|---|---|---|
| committer | Igor <50257429+igorechek06@users.noreply.github.com> | 2021-10-15 14:32:19 +0900 |
| commit | 8616675c7091b23553904d1e9ba32f1685224246 (patch) | |
| tree | e1b2b014bf1eef37effd8f426b2afd848d1d876c /handlers/all.py | |
| parent | b34cff8c7991eebd510f6f591d117d1306edac57 (diff) | |
| download | karpov_ai_bot-8616675c7091b23553904d1e9ba32f1685224246.tar.gz karpov_ai_bot-8616675c7091b23553904d1e9ba32f1685224246.zip | |
Bug fix
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) |
