Fange BadRequest ab
This commit is contained in:
parent
4cb19a7ba5
commit
9739cc33df
2
bot.py
2
bot.py
@ -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)
|
||||||
|
Reference in New Issue
Block a user