Print pythons exceptions in macros to output window

This commit is contained in:
wmayer 2012-02-07 12:18:10 +01:00
parent 9afae903ac
commit 21d3c0c81b

View File

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