more verbose telegram error messages

master
b3yond 2018-12-31 15:27:11 +01:00
parent 10836109b0
commit 6a206f1c0f
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@ class TelegramBot(Bot):
if update in [303, 404, 420, 500, 502]:
return reports
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
user.save_seen_tg(update.update_id)
if update.message.text.lower() == "/start":