diff Objects/classobject.c @ 14180:ea7040ab7286 legacy-trunk

Call PyErr_Clear() to clear the AttributeError raised by GetAttr.
author Thomas Wouters <thomas@python.org>
date Fri, 25 Aug 2000 10:47:46 +0000
parents 52fd496d3532
children 6dee1985c681
line wrap: on
line diff
--- a/Objects/classobject.c	Fri Aug 25 06:52:44 2000 +0000
+++ b/Objects/classobject.c	Fri Aug 25 10:47:46 2000 +0000
@@ -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);