You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For coroutines decorated with asyncSlot, if the enclosing task is cancelled, the asyncio.CancelledError is left uncaught. This is a problem if another signal triggers the cancelling of that enclosing task, while it is awaiting for something.
I believe the error handler at line 778 of qasync/__init__.py should handle asyncio.CancelledError with something like this:
For coroutines decorated with
asyncSlot
, if the enclosing task is cancelled, theasyncio.CancelledError
is left uncaught. This is a problem if another signal triggers the cancelling of that enclosing task, while it isawait
ing for something.I believe the error handler at line 778 of
qasync/__init__.py
should handleasyncio.CancelledError
with something like this:Note that since Python 3.8,
asyncio.CancelledError
is a derived class ofBaseException
but notException
.The text was updated successfully, but these errors were encountered: