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:
@@ -380,8 +380,7 @@ class Interface(Logger):
|
||||
|
||||
async def spawn_task():
|
||||
task = await self.network.taskgroup.spawn(self.run())
|
||||
if sys.version_info >= (3, 8):
|
||||
task.set_name(f"interface::{str(server)}")
|
||||
task.set_name(f"interface::{str(server)}")
|
||||
asyncio.run_coroutine_threadsafe(spawn_task(), self.network.asyncio_loop)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user