mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 10:40:16 +00:00
Use ._logger.exception when .connect fails (#373)
This commit is contained in:
@@ -204,12 +204,10 @@ class TelegramBareClient:
|
||||
self.disconnect()
|
||||
return self.connect(_sync_updates=_sync_updates)
|
||||
|
||||
except (RPCError, ConnectionError) as error:
|
||||
except (RPCError, ConnectionError):
|
||||
# Probably errors from the previous session, ignore them
|
||||
self.disconnect()
|
||||
self._logger.debug(
|
||||
'Could not stabilise initial connection: {}'.format(error)
|
||||
)
|
||||
self._logger.exception('Could not stabilise initial connection.')
|
||||
return False
|
||||
|
||||
def is_connected(self):
|
||||
|
Reference in New Issue
Block a user