Catch a possible non-cancel exception when terminating Node module
This commit is contained in:
parent
61d9a60704
commit
297697973f
@ -275,6 +275,9 @@ class RPCClient:
|
||||
except asyncio.LimitOverrunError as e:
|
||||
self.log.warning(f"Buffer overrun: {e}")
|
||||
line += await self._reader.read(self._reader._limit)
|
||||
except ConnectionResetError:
|
||||
if self._reader is not None:
|
||||
raise
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
if not line:
|
||||
|
Loading…
Reference in New Issue
Block a user