]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Call PyErr_Clear() to clear the AttributeError raised by GetAttr.
authorThomas Wouters <thomas@python.org>
Fri, 25 Aug 2000 10:47:46 +0000 (10:47 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 25 Aug 2000 10:47:46 +0000 (10:47 +0000)
Objects/classobject.c

index f1fd31f289b9aed53eef84e65c395c9d4ad03167..0b595b9090a71ba5565038d166dd7c6863f77198 100644 (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);