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
{{ message }}
Repository navigation
TaskGroup propagates CancelledError rather than a MultiError on exception #34
I have tested your code with asyncio.TaskGroup introduced in Python 3.11 development version.
Got inner ExceptionGroup('unhandled errors in a TaskGroup', [Exception('bad stuff')])
Got outer ExceptionGroup('unhandled errors in a TaskGroup', [Exception('bad stuff')])
With aiotools.TaskGroup,
Got outer CancelledError()
It seems to have some problem, definitely. I'll look into more.
Activity
achimnol commentedon Feb 21, 2022
Let's inspect how python/cpython#31270 handles this...
achimnol commentedon Feb 21, 2022
Also refer https://bugs.python.org/issue46771
achimnol commentedon Feb 27, 2022
I have tested your code with
asyncio.TaskGroupintroduced in Python 3.11 development version.With
aiotools.TaskGroup,It seems to have some problem, definitely. I'll look into more.
Fix "unexpected cancel" when parent is cancelled but needs to continue (