fix various coverity issues

This commit is contained in:
wmayer
2017-09-15 11:48:38 +02:00
parent a3953e95df
commit fde42545ba
17 changed files with 83 additions and 21 deletions

View File

@@ -39,6 +39,7 @@
#include <App/Part.h>
#include <Base/Tools.h>
#include <Base/Reader.h>
#include <Base/Console.h>
#include <Mod/PartDesign/App/Body.h>
#include <Mod/Sketcher/App/SketchObject.h>
@@ -280,6 +281,15 @@ std::vector<App::DocumentObject*> TaskFeaturePick::buildFeatures()
catch (const Base::Exception& e) {
e.ReportException();
}
catch (Py::Exception& e) {
// reported by code analyzers
e.clear();
Base::Console().Warning("Unexpected PyCXX exception\n");
}
catch (const boost::exception&) {
// reported by code analyzers
Base::Console().Warning("Unexpected boost exception\n");
}
return result;
}