mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-21 17:06:36 +03:00
Don't treat asyncio.IncompleteReadError as unhandled
The library will behave the same, but the log severity is lowered.
This commit is contained in:
parent
6ded164b85
commit
128b707488
|
@ -505,8 +505,8 @@ class MTProtoSender:
|
|||
body = await self._connection.recv()
|
||||
except asyncio.CancelledError:
|
||||
raise # bypass except Exception
|
||||
except IOError as e:
|
||||
self._log.info('Connection closed while receiving data')
|
||||
except (IOError, asyncio.IncompleteReadError) as e:
|
||||
self._log.info('Connection closed while receiving data: %s', e)
|
||||
self._start_reconnect(e)
|
||||
return
|
||||
except InvalidBufferError as e:
|
||||
|
|
Loading…
Reference in New Issue
Block a user