From 8b36589557b0687a8419dfdbdbf9ae4ea885bdfa Mon Sep 17 00:00:00 2001 From: b3yond Date: Fri, 26 Oct 2018 17:27:00 +0200 Subject: [PATCH] added 502 to unlogged Telegram error codes --- active_bots/telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/active_bots/telegrambot.py b/active_bots/telegrambot.py index 0bb2866..a65e38f 100644 --- a/active_bots/telegrambot.py +++ b/active_bots/telegrambot.py @@ -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))