From 9739cc33df1475fbf8bc19c3a19041fe34c3ae21 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Tue, 10 Oct 2017 20:05:47 +0200 Subject: [PATCH] Fange BadRequest ab --- bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.py b/bot.py index 950c49b..41424af 100644 --- a/bot.py +++ b/bot.py @@ -313,6 +313,8 @@ def check_feed(bot, key): ) except telegram.error.TimedOut: pass + except telegram.error.BadRequest as exception: + logger.error(exception) if not r.exists(key): r.delete(last_entry_hash)