From b7ed6d9ec1eff9f6ba32792795bc02a78d967f3f Mon Sep 17 00:00:00 2001 From: "Dmitry D. Chernov" Date: Thu, 11 May 2017 15:46:27 +1000 Subject: [PATCH] TelegramClient: Fix log_out() returning nothing on success --- telethon/telegram_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index 05175893..46b88887 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -270,6 +270,7 @@ class TelegramClient: return False self.session = None + return True except: # Something happened when logging out, restore the state back self.sender.logging_out = False