From 35966e7e432b707e6186457fd733a47e296a997d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Wed, 23 Jul 2025 14:16:31 +0000 Subject: [PATCH] Ignore CancelledError in async slots --- qasync/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qasync/__init__.py b/qasync/__init__.py index 732f7a2..ded80ef 100644 --- a/qasync/__init__.py +++ b/qasync/__init__.py @@ -801,6 +801,8 @@ def _error_handler(task): task.result() except Exception: sys.excepthook(*sys.exc_info()) + except asyncio.CancelledError: + pass def outer_decorator(fn): @Slot(*args, **kwargs)