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

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