1
0

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:
SomberNight
2022-02-08 12:56:02 +01:00
parent dd2f8541b7
commit 3f3212e94d
7 changed files with 3 additions and 20 deletions

View File

@@ -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: