Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: BadRequest tg err #610

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: BadRequest tg err
  • Loading branch information
BobTheBuidler committed Sep 7, 2023
commit 352c7a5e179291d7e867686541afe01133b48da7
2 changes: 1 addition & 1 deletion scripts/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down