Proper handling of SystemExitException in Python

This commit is contained in:
wmayer
2012-08-11 10:58:54 +02:00
parent 408e1dc8e1
commit 0d351e98e2
8 changed files with 37 additions and 18 deletions

View File

@@ -300,6 +300,9 @@ int main( int argc, char ** argv )
else
App::Application::runApplication();
}
catch (const Base::SystemExitException&) {
exit(0);
}
catch (const Base::Exception& e) {
Base::Console().Error("%s\n", e.what());
}