issue #1700 replace PyExc_Exception

This commit is contained in:
Sebastian Hoogen
2014-08-29 21:12:45 +02:00
committed by wmayer
parent 1b1d8010a6
commit ed66ada1cf
21 changed files with 64 additions and 64 deletions

View File

@@ -271,7 +271,7 @@ QWidget* setupMainWindow()
Base::Interpreter().runString(Base::ScriptFactory().ProduceScript("FreeCADGuiInit"));
}
catch (const Base::Exception& e) {
PyErr_Format(PyExc_Exception, "Error in FreeCADGuiInit.py: %s\n", e.what());
PyErr_Format(Base::BaseExceptionFreeCADError, "Error in FreeCADGuiInit.py: %s\n", e.what());
return 0;
}
init = true;