mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 19:03:46 +03:00
Except expected ConnectionError in the receive loop
This commit is contained in:
parent
0d8b15a109
commit
b0e587c03d
|
@ -163,7 +163,7 @@ class Connection(abc.ABC):
|
|||
except asyncio.CancelledError:
|
||||
pass
|
||||
except Exception as e:
|
||||
if isinstance(e, asyncio.IncompleteReadError):
|
||||
if isinstance(e, (ConnectionError, asyncio.IncompleteReadError)):
|
||||
msg = 'The server closed the connection'
|
||||
__log__.info(msg)
|
||||
elif isinstance(e, InvalidChecksumError):
|
||||
|
|
Loading…
Reference in New Issue
Block a user