From 8616675c7091b23553904d1e9ba32f1685224246 Mon Sep 17 00:00:00 2001 From: Igor <50257429+igorechek06@users.noreply.github.com> Date: Fri, 15 Oct 2021 14:32:19 +0900 Subject: Bug fix --- handlers/all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'handlers/all.py') 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 @dp.errors_handler() async def errors_handler(upd: t.Update, err: Exception): txt = "Я хз что произошло, но да \n" - txt += f" {err.__class__.__name__}: {' '.join(err.args)}" + txt += f" {err.__class__.__name__}: {' '.join(map(str, err.args))}" if upd.message: await upd.message.answer(txt) -- cgit v1.2.3