Commit 729feee3 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Fix exception handling in lookup_maybe

parent 4a114aaa
......@@ -532,8 +532,14 @@ static PyObject* lookup_maybe(PyObject* self, const char* attrstr, PyObject** at
}
Box* obj = typeLookup(self->cls, (BoxedString*)*attrobj, NULL);
if (obj)
return processDescriptor(obj, self, self->cls);
if (obj) {
try {
return processDescriptor(obj, self, self->cls);
} catch (ExcInfo e) {
setCAPIException(e);
return NULL;
}
}
return obj;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment