mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +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
|
@ -2717,7 +2717,7 @@ dummy_func(
|
|||
|
||||
PyObject *match_o = NULL;
|
||||
PyObject *rest_o = NULL;
|
||||
int res = _PyEval_ExceptionGroupMatch(exc_value, match_type,
|
||||
int res = _PyEval_ExceptionGroupMatch(frame, exc_value, match_type,
|
||||
&match_o, &rest_o);
|
||||
DECREF_INPUTS();
|
||||
ERROR_IF(res < 0, error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue