Repair missed case of catching CancelledError

This commit is contained in:
Tony Garnock-Jones 2024-03-30 09:09:56 +01:00
parent 420868eae7
commit 92027e94a9
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ class System:
async def _run(self):
try:
await self.exit_signal.get()
except asyncio.CancelledError:
pass
finally:
log.debug('System._run main loop exit')