Print pythons exceptions in macros to output window
This commit is contained in:
parent
9afae903ac
commit
21d3c0c81b
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user