mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
Simplified raise statement
This commit is contained in:
parent
ed6e4c4757
commit
61141c3e35
|
@ -327,7 +327,7 @@ class TelegramClient(TelegramBareClient):
|
|||
# Socket has been already closed (Errno 57)
|
||||
# Fail on any other error
|
||||
if e.errno != errno.ENOTCONN:
|
||||
raise e
|
||||
raise
|
||||
except (RPCError, ConnectionError):
|
||||
# Something happened when logging out, restore the state back
|
||||
self._sender.logging_out = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user