Skip to content

Commit 3b78c45

Browse files
authored
Merge pull request #137 from kristjanvalur/cancelled
Ignore CancelledError in async slots
2 parents 68be1ee + 35966e7 commit 3b78c45

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
@@ -814,6 +814,8 @@ def _error_handler(task):
814814
task.result()
815815
except Exception:
816816
sys.excepthook(*sys.exc_info())
817+
except asyncio.CancelledError:
818+
pass
817819

818820
def outer_decorator(fn):
819821
@Slot(*args, **kwargs)

0 commit comments

Comments
 (0)