fix various coverity issues

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

View File

@@ -774,7 +774,11 @@ void Application::onLastWindowClosed(Gui::Document* pcDoc)
// Call the closing mechanism from Python. This also checks whether pcDoc is the last open document.
Command::doCommand(Command::Doc, "App.closeDocument(\"%s\")", pcDoc->getDocument()->getName());
}
catch (const Base::PyException& e) {
catch (const Base::Exception& e) {
e.ReportException();
}
catch (const Py::Exception&) {
Base::PyException e;
e.ReportException();
}
}