Fange BadRequest ab

This commit is contained in:
Andreas Bielawski 2017-10-10 20:05:47 +02:00
parent 4cb19a7ba5
commit 9739cc33df

2
bot.py
View File

@ -313,6 +313,8 @@ def check_feed(bot, key):
) )
except telegram.error.TimedOut: except telegram.error.TimedOut:
pass pass
except telegram.error.BadRequest as exception:
logger.error(exception)
if not r.exists(key): if not r.exists(key):
r.delete(last_entry_hash) r.delete(last_entry_hash)