mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
gh-111178: Regen clinic and fix exceptions.c post gh-128447 (#129060)
This commit is contained in:
parent
a30277a06a
commit
da0f47ceab
2 changed files with 24 additions and 24 deletions
|
|
@ -4256,7 +4256,7 @@ _PyException_AddNote(PyObject *exc, PyObject *note)
|
|||
Py_TYPE(exc)->tp_name);
|
||||
return -1;
|
||||
}
|
||||
PyObject *r = BaseException_add_note(_PyBaseExceptionObject_cast(exc), note);
|
||||
PyObject *r = BaseException_add_note(exc, note);
|
||||
int res = r == NULL ? -1 : 0;
|
||||
Py_XDECREF(r);
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue