diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 1fb02ee7fd..68e2c1f9c7 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -1037,6 +1037,9 @@ void MainWindow::delayedStartup() try { Base::Interpreter().runString(Base::ScriptFactory().ProduceScript("FreeCADTest")); } + catch (const Base::SystemExitException&) { + throw; + } catch (const Base::Exception& e) { e.ReportException(); }