summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-05-25 02:40:21 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-05-25 02:40:21 (GMT)
commit87e5006d8c5974597df9e3074b95227187d32be3 (patch)
tree82f8ff2dae761cdf19eeec36806f3bbb35b439e1 /Objects/object.c
parent176a56c69b1563c4a8ac0d8f974b4271177c80ee (diff)
downloadcpython-87e5006d8c5974597df9e3074b95227187d32be3.zip
cpython-87e5006d8c5974597df9e3074b95227187d32be3.tar.gz
cpython-87e5006d8c5974597df9e3074b95227187d32be3.tar.bz2
handle errors from _PyObject_LookupSpecial when __get__ fails
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 08abe71..95072af 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -509,6 +509,8 @@ PyObject_Unicode(PyObject *v)
res = PyObject_CallFunctionObjArgs(func, NULL);
Py_DECREF(func);
}
+ else if (PyErr_Occurred())
+ return NULL;
}
/* Didn't find __unicode__ */