Queer European MD passionate about IT
Parcourir la source

Log "API" in case of TelegramError raised during API call

Davte il y a 5 ans
Parent
commit
d44e410101
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      davtelepot/api.py

+ 1 - 1
davtelepot/api.py

@@ -153,7 +153,7 @@ class TelegramBot(object):
                         await response.json()  # Telegram returns json objects
                     )
                 except TelegramError as e:
-                    logging.error(f"{e}")
+                    logging.error(f"API {e}")
                     return e
                 except Exception as e:
                     logging.error(f"{e}", exc_info=True)