some clean-ups now that we require python 3.8
In particular, asyncio.CancelledError no longer inherits Exception (it inherits BaseException directly)
This commit is contained in:
@@ -123,8 +123,6 @@ class LNTransportBase:
|
||||
break
|
||||
try:
|
||||
s = await self.reader.read(2**10)
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
except Exception:
|
||||
s = None
|
||||
if not s:
|
||||
|
||||
Reference in New Issue
Block a user