From 96b4975b1f28012711f0defdf02a2b802c1659fb Mon Sep 17 00:00:00 2001 From: b3yond Date: Mon, 31 Dec 2018 15:33:50 +0100 Subject: [PATCH] fixing the original TypeError --- active_bots/telegrambot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/active_bots/telegrambot.py b/active_bots/telegrambot.py index e17b945..439583b 100644 --- a/active_bots/telegrambot.py +++ b/active_bots/telegrambot.py @@ -25,9 +25,9 @@ class TelegramBot(Bot): return reports if isinstance(update, int): try: - logger.error("City " + user.uid + + logger.error("City " + str(user.uid) + ": Unknown Telegram error code: " + - str(update) + " - " + updates[1]) + str(update) + " - " + str(updates[1])) except TypeError: logger.error("Unknown Telegram error code: " + str(update)) return reports