added 502 to unlogged Telegram error codes
This commit is contained in:
parent
7cb211b4cb
commit
8b36589557
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue