diff --git a/src/Mod/Part/App/PartFeature.cpp b/src/Mod/Part/App/PartFeature.cpp index d898eeee02..78e6f2d18a 100644 --- a/src/Mod/Part/App/PartFeature.cpp +++ b/src/Mod/Part/App/PartFeature.cpp @@ -109,16 +109,16 @@ std::vector Feature::getPySubObjects(const std::vector& { try { std::vector temp; - for(std::vector::const_iterator it=NameVec.begin();it!=NameVec.end();++it){ + for (std::vector::const_iterator it=NameVec.begin();it!=NameVec.end();++it) { PyObject *obj = Shape.getShape().getPySubShape((*it).c_str()); - if(obj) + if (obj) temp.push_back(obj); } return temp; } - catch (Standard_Failure& e) { - - throw Py::ValueError(e.GetMessageString()); + catch (Standard_Failure&) { + //throw Py::ValueError(e.GetMessageString()); + return std::vector(); } }