-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.13] gh-128049: Fix type confusion bug with the return value of a c…
…ustom ExceptionGroup split function (GH-128079) (#128139) gh-128049: Fix type confusion bug with the return value of a custom ExceptionGroup split function (GH-128079) (cherry picked from commit 3879ca0) Co-authored-by: Nico-Posada <102486290+Nico-Posada@users.noreply.github.com>
- Loading branch information
1 parent
43586a4
commit 09d15aa
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