From 778c844a649e050b472d547c3b7ad1ce72c5ecc0 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 16 Nov 2017 13:25:13 +0100 Subject: [PATCH] Use logger.exception instead logger.error on ReadThread --- telethon/telegram_bare_client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py index 67ba0c88..87661e94 100644 --- a/telethon/telegram_bare_client.py +++ b/telethon/telegram_bare_client.py @@ -843,9 +843,8 @@ class TelegramBareClient: self.idle(stop_signals=tuple()) except Exception as error: # Unknown exception, pass it to the main thread - self._logger.error( - 'Unknown error on the read thread, please report', - error + self._logger.exception( + 'Unknown error on the read thread, please report' ) try: