mirror of https://github.com/python/cpython
Call PyErr_Clear() to clear the AttributeError raised by GetAttr.
This commit is contained in:
parent
aff1284ed1
commit
1de2a79a48
|
@ -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…
Reference in New Issue