App: remove unncessary exception catch

This allows exception to propagate to generated C++ python extension
class code.
This commit is contained in:
Zheng, Lei
2020-01-22 16:56:39 +08:00
committed by WandererFan
parent e4978be7a4
commit dc52336749

View File

@@ -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;
}