Skip to content

Commit

Permalink
+ Handle PyCXX exception in Command::invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 17, 2015
1 parent 8fbe631 commit 86882ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Gui/Command.cpp
Expand Up @@ -292,7 +292,11 @@ void Command::invoke(int i)
}
catch (Base::PyException &e) {
e.ReportException();
Base::Console().Error("Stack Trace: %s\n",e.getStackTrace().c_str());
}
catch (Py::Exception&) {
Base::PyGILStateLocker lock;
Base::PyException e;
e.ReportException();
}
catch (Base::AbortException&) {
}
Expand Down

0 comments on commit 86882ee

Please sign in to comment.