diff --git a/src/App/PropertyContainerPyImp.cpp b/src/App/PropertyContainerPyImp.cpp index e4935ba3d0..2f09ab3562 100644 --- a/src/App/PropertyContainerPyImp.cpp +++ b/src/App/PropertyContainerPyImp.cpp @@ -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; }