mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 12:40: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)
|
# Socket has been already closed (Errno 57)
|
||||||
# Fail on any other error
|
# Fail on any other error
|
||||||
if e.errno != errno.ENOTCONN:
|
if e.errno != errno.ENOTCONN:
|
||||||
raise e
|
raise
|
||||||
except (RPCError, ConnectionError):
|
except (RPCError, ConnectionError):
|
||||||
# Something happened when logging out, restore the state back
|
# Something happened when logging out, restore the state back
|
||||||
self._sender.logging_out = False
|
self._sender.logging_out = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user