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