From e4523b5cb804ff268fa614e979d2c46908dca7a7 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 3 Nov 2023 15:35:18 +0300 Subject: [PATCH] log all exceptions --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 648cb57..13826fe 100644 --- a/main.py +++ b/main.py @@ -115,7 +115,7 @@ async def send_post(post: E621Post, tag_list: List[str]): parse_mode=ParseMode.HTML, reply_markup=markup) await redis.sadd('e621:sent', post.id) - except exceptions.TelegramAPIError as e: + except Exception as e: logging.exception(e)