commit | 1de2a79a481d4d9e449734ab51e08b30549cf07e | [log] [tgz] |
---|---|---|
author | Thomas Wouters <thomas@python.org> | Fri Aug 25 10:47:46 2000 +0000 |
committer | Thomas Wouters <thomas@python.org> | Fri Aug 25 10:47:46 2000 +0000 |
tree | b7625c6da469790041c4eb81d160e912b0e4ac15 | |
parent | aff1284ed1673a77f269adc188481882ed4ab3e8 [diff] |
Call PyErr_Clear() to clear the AttributeError raised by GetAttr.
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 @@ if (func == NULL) { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) return NULL; + PyErr_Clear(); return instance_pow(v, w, z); } args = Py_BuildValue("(OO)", w, z);