App: remove unncessary exception catch
This allows exception to propagate to generated C++ python extension class code.
This commit is contained in:
@@ -555,11 +555,8 @@ int PropertyContainerPy::setCustomAttributes(const char* attr, PyObject *obj)
|
||||
throw Py::AttributeError(s.str());
|
||||
}
|
||||
|
||||
PY_TRY {
|
||||
FC_TRACE("Set property " << prop->getFullName());
|
||||
prop->setPyObject(obj);
|
||||
}_PY_CATCH(return(-1))
|
||||
|
||||
FC_TRACE("Set property " << prop->getFullName());
|
||||
prop->setPyObject(obj);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user