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:
parent
5ce6221efa
commit
cd7dac40f7
3 changed files with 10 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue