Call PyErr_Clear() to clear the AttributeError raised by GetAttr.

This commit is contained in:
Thomas Wouters 2000-08-25 10:47:46 +00:00
parent aff1284ed1
commit 1de2a79a48
1 changed files with 1 additions and 0 deletions

View File

@ -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);