mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 11:02:29 +00: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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user