summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-25 10:47:46 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-25 10:47:46 (GMT)
commit1de2a79a481d4d9e449734ab51e08b30549cf07e (patch)
treeb7625c6da469790041c4eb81d160e912b0e4ac15 /Objects/classobject.c
parentaff1284ed1673a77f269adc188481882ed4ab3e8 (diff)
downloadcpython-1de2a79a481d4d9e449734ab51e08b30549cf07e.zip
cpython-1de2a79a481d4d9e449734ab51e08b30549cf07e.tar.gz
cpython-1de2a79a481d4d9e449734ab51e08b30549cf07e.tar.bz2
Call PyErr_Clear() to clear the AttributeError raised by GetAttr.
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index f1fd31f..0b595b9 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -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);