added 502 to unlogged Telegram error codes

csrf
b3yond 2018-10-26 17:27:00 +02:00
parent 7cb211b4cb
commit 8b36589557
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class TelegramBot(Bot):
return reports
for update in updates:
# return when telegram returns an error code
if update in [303, 404, 420, 500]:
if update in [303, 404, 420, 500, 502]:
return reports
elif isinstance(update, int):
logger.error("Unknown Telegram error code: " + str(update))