From 6ef5acdce17b95ed5166a32aa479eae0cb7f8cad Mon Sep 17 00:00:00 2001 From: Igor Tolmachov Date: Wed, 20 Apr 2022 02:00:20 +0900 Subject: Рефакторинг Добавлена система заявок в группу MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handlers/all.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 handlers/all.py (limited to 'handlers/all.py') diff --git a/handlers/all.py b/handlers/all.py deleted file mode 100644 index 1947604..0000000 --- a/handlers/all.py +++ /dev/null @@ -1,22 +0,0 @@ -import logging -import traceback - -from shared.instances import dp -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(map(str, err.args))}" - - if upd.message: - await upd.message.answer(txt) - elif upd.callback_query: - await upd.callback_query.answer(txt) - else: - return - - logging.error(traceback.format_exc()) - - return True -- cgit v1.2.3