Skip to content

Commit 35966e7

Browse files
Ignore CancelledError in async slots
1 parent 819a630 commit 35966e7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

qasync/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,8 @@ def _error_handler(task):
801801
task.result()
802802
except Exception:
803803
sys.excepthook(*sys.exc_info())
804+
except asyncio.CancelledError:
805+
pass
804806

805807
def outer_decorator(fn):
806808
@Slot(*args, **kwargs)

0 commit comments

Comments
 (0)