diff --git a/src/Gui/Macro.cpp b/src/Gui/Macro.cpp index f1b505fc2..a7285008e 100644 --- a/src/Gui/Macro.cpp +++ b/src/Gui/Macro.cpp @@ -227,6 +227,10 @@ void MacroManager::run(MacroType eType,const char *sName) PyErr_Clear(); Base::Interpreter().systemExit(); } + catch (const Base::PyException& e) { + Base::Console().Error("%s%s: %s\n", + e.getStackTrace().c_str(), e.getErrorType().c_str(), e.what()); + } catch (const Base::Exception& e) { qWarning("%s",e.what()); }