From 92027e94a94df24c4c21f74c2eb15897c5b01ec4 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sat, 30 Mar 2024 09:09:56 +0100 Subject: [PATCH] Repair missed case of catching CancelledError --- syndicate/actor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syndicate/actor.py b/syndicate/actor.py index 0e07327..06cefc3 100644 --- a/syndicate/actor.py +++ b/syndicate/actor.py @@ -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')