fixing the original TypeError
This commit is contained in:
parent
e7e230b2f0
commit
f6c19abad6
|
@ -25,9 +25,9 @@ class TelegramBot(Bot):
|
||||||
return reports
|
return reports
|
||||||
if isinstance(update, int):
|
if isinstance(update, int):
|
||||||
try:
|
try:
|
||||||
logger.error("City " + user.uid +
|
logger.error("City " + str(user.uid) +
|
||||||
": Unknown Telegram error code: " +
|
": Unknown Telegram error code: " +
|
||||||
str(update) + " - " + updates[1])
|
str(update) + " - " + str(updates[1]))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
logger.error("Unknown Telegram error code: " + str(update))
|
logger.error("Unknown Telegram error code: " + str(update))
|
||||||
return reports
|
return reports
|
||||||
|
|
Loading…
Reference in a new issue