forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-128049: Fix type confusion bug with the return value of a cu…
…stom ExceptionGroup split function (python#128079)
- Loading branch information
1 parent
5a584c8
commit 3879ca0
Showing
3 changed files
with
67 additions
and
2 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
5 changes: 5 additions & 0 deletions
5
Misc/NEWS.d/next/Core_and_Builtins/2024-12-18-14-22-48.gh-issue-128079.SUD5le.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Fix a bug where :keyword:`except* <except_star>` does not properly check the | ||
return value of an :exc:`ExceptionGroup`'s :meth:`~BaseExceptionGroup.split` | ||
function, leading to a crash in some cases. Now when :meth:`~BaseExceptionGroup.split` | ||
returns an invalid object, :keyword:`except* <except_star>` raises a :exc:`TypeError` | ||
with the original raised :exc:`ExceptionGroup` object chained to it. |
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