Don't ignore exceptions caused by property getters and setters.

The exception is ignored only if the call was a meta call.
This commit is contained in:
Hugo Parente Lima 2010-09-15 10:40:52 -03:00
commit cd7dac40f7
3 changed files with 10 additions and 5 deletions

View file

@ -188,11 +188,7 @@ PyObject* qproperty_get(PyObject* self, PyObject* source)
Shiboken::AutoDecRef args(PyTuple_New(1));
Py_INCREF(source);
PyTuple_SET_ITEM(args, 0, source);
PyObject *ret = PyObject_CallObject(data->fget, args);
if (!ret) {
PyErr_Print();
}
return ret;
return PyObject_CallObject(data->fget, args);
}
return 0;
}