From 352c7a5e179291d7e867686541afe01133b48da7 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Thu, 7 Sep 2023 20:58:03 +0000 Subject: [PATCH] fix: BadRequest tg err --- scripts/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/s3.py b/scripts/s3.py index 04991c567..1854af75f 100644 --- a/scripts/s3.py +++ b/scripts/s3.py @@ -324,7 +324,7 @@ def with_monitoring(): updater.bot.send_message(chat_id=private_group, text=detail_message, parse_mode="Markdown", reply_to_message_id=ping) updater.bot.send_message(chat_id=public_group, text=detail_message, parse_mode="Markdown") except BadRequest: - detail_message = message + f"{error.__class__.__name__}({error})" + detail_message = (message + f"\n{tb}\n")[:4000] updater.bot.send_message(chat_id=private_group, text=detail_message, parse_mode="Markdown", reply_to_message_id=ping) updater.bot.send_message(chat_id=public_group, text=detail_message, parse_mode="Markdown") raise error