-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 FIX:
Task.cancel
should not set state as EXCEPTED (#214)
`asyncio.CancelledError` are generated when an async task is cancelled. In python 3.7 it inherits from `Exception`, whereas in python 3.8+ it inherits from `BaseException`. This meant it python 3.7 it was being caught by the broad `except Exception`, and setting the process state to EXCEPTED, whereas in python 3.8+ it was being re-raised to the caller. We now ensure in both versions it is re-raised.
- Loading branch information
1 parent
db0bf60
commit 99f959b
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters