mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-128799: Add frame of except* to traceback when wrapping a naked exception (#128971)
This commit is contained in:
parent
9e52e553f4
commit
c39ae8922b
7 changed files with 44 additions and 6 deletions
2
Python/generated_cases.c.h
generated
2
Python/generated_cases.c.h
generated
|
@ -3201,7 +3201,7 @@
|
|||
PyObject *match_o = NULL;
|
||||
PyObject *rest_o = NULL;
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
int res = _PyEval_ExceptionGroupMatch(exc_value, match_type,
|
||||
int res = _PyEval_ExceptionGroupMatch(frame, exc_value, match_type,
|
||||
&match_o, &rest_o);
|
||||
stack_pointer = _PyFrame_GetStackPointer(frame);
|
||||
PyStackRef_CLOSE(exc_value_st);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue