Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed asyncio CancelScope not recognizing its own cancellation exception #639

Merged
merged 4 commits into from
Nov 22, 2023

Conversation

agronholm
Copy link
Owner

...if it comes wrapped in an exception group.
Fixes #634.

@agronholm
Copy link
Owner Author

@DaGenix I'm only unwrapping one layer of exception groups; do you think it's necessary to unwrap them all?

@agronholm
Copy link
Owner Author

I replaced some dead code with a helper function that should cover all our bases.

@agronholm agronholm merged commit c360b99 into master Nov 22, 2023
17 checks passed
@agronholm agronholm deleted the fix-cancelscope-wrapping branch November 22, 2023 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-raising a CancelledError after catching it in an ExceptionGroup confuses asyncio backend
1 participant