mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +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()
|
body = await self._connection.recv()
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
raise # bypass except Exception
|
raise # bypass except Exception
|
||||||
except IOError as e:
|
except (IOError, asyncio.IncompleteReadError) as e:
|
||||||
self._log.info('Connection closed while receiving data')
|
self._log.info('Connection closed while receiving data: %s', e)
|
||||||
self._start_reconnect(e)
|
self._start_reconnect(e)
|
||||||
return
|
return
|
||||||
except InvalidBufferError as e:
|
except InvalidBufferError as e:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user