mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Call PyErr_Clear() to clear the AttributeError raised by GetAttr.
This commit is contained in:
parent
aff1284ed1
commit
1de2a79a48
1 changed files with 1 additions and 0 deletions
|
|
@ -1460,6 +1460,7 @@ instance_inplace_pow(PyObject *v, PyObject *w, PyObject *z)
|
|||
if (func == NULL) {
|
||||
if (!PyErr_ExceptionMatches(PyExc_AttributeError))
|
||||
return NULL;
|
||||
PyErr_Clear();
|
||||
return instance_pow(v, w, z);
|
||||
}
|
||||
args = Py_BuildValue("(OO)", w, z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue