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
asyncio.shutdown_asyncgens silently drops CancelledError from generator cleanup #150866
What about other base exceptions like SystemExit? I think currently they would be dropped as well.
exceptions like SystemExit do not reach this point because they reraise instead of storing it, but your direction is right, and I'll switch to isinstance(result, BaseException)
Activity
deadlovelll commentedon Jun 3, 2026
I'll create the pr
kumaraditya303 commentedon Jul 24, 2026
What about other base exceptions like SystemExit? I think currently they would be dropped as well.
deadlovelll commentedon Jul 25, 2026
exceptions like SystemExit do not reach this point because they reraise instead of storing it, but your direction is right, and I'll switch to isinstance(result, BaseException)
gh-150866: Fix asyncio shutdown_asyncgens to report BaseException (#1…
pythongh-150866: Fix asyncio shutdown_asyncgens to report BaseExcepti…