more verbose telegram error messages
This commit is contained in:
parent
d5823ee1ad
commit
e72d4872c0
|
@ -24,7 +24,9 @@ class TelegramBot(Bot):
|
||||||
if update in [303, 404, 420, 500, 502]:
|
if update in [303, 404, 420, 500, 502]:
|
||||||
return reports
|
return reports
|
||||||
if isinstance(update, int):
|
if isinstance(update, int):
|
||||||
logger.error("Unknown Telegram error code: " + str(update))
|
logger.error("City " + user.uid +
|
||||||
|
": Unknown Telegram error code: " +
|
||||||
|
str(update) + " - " + updates[1])
|
||||||
return reports
|
return reports
|
||||||
user.save_seen_tg(update.update_id)
|
user.save_seen_tg(update.update_id)
|
||||||
if update.message.text.lower() == "/start":
|
if update.message.text.lower() == "/start":
|
||||||
|
|
Loading…
Reference in a new issue