Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Added new exception to notify admins function
Browse files Browse the repository at this point in the history
  • Loading branch information
horrific committed Jul 4, 2018
1 parent 008fa90 commit 7ba5bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def notify_admins(message):
for admin_id in ADMIN_CHAT_ID:
try:
BOT.sendMessage(admin_id, text=message)
except telegram.error.BadRequest:
except (telegram.error.BadRequest, telegram.error.Unauthorized):
logging.warning('Admin chat_id %s unreachable', admin_id)


Expand Down

0 comments on commit 7ba5bc8

Please sign in to comment.