From dc52336749e382f16291af5bb6056ae3bf05a558 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Wed, 22 Jan 2020 16:56:39 +0800 Subject: [PATCH] App: remove unncessary exception catch This allows exception to propagate to generated C++ python extension class code. --- src/App/PropertyContainerPyImp.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; }