Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError

This commit is contained in:
wmayer
2022-03-17 14:45:48 +01:00
parent 1f12dca2b4
commit e4d1ed8366
29 changed files with 114 additions and 114 deletions

View File

@@ -222,7 +222,7 @@ FreeCADGui_embedToWindow(PyObject * /*self*/, PyObject *args)
QWidget* widget = Gui::getMainWindow();
if (!widget) {
PyErr_SetString(Base::BaseExceptionFreeCADError, "No main window");
PyErr_SetString(Base::PyExc_FC_GeneralError, "No main window");
return 0;
}
@@ -320,7 +320,7 @@ QWidget* setupMainWindow()
Base::Interpreter().runString(Base::ScriptFactory().ProduceScript("FreeCADGuiInit"));
}
catch (const Base::Exception& e) {
PyErr_Format(Base::BaseExceptionFreeCADError, "Error in FreeCADGuiInit.py: %s\n", e.what());
PyErr_Format(Base::PyExc_FC_GeneralError, "Error in FreeCADGuiInit.py: %s\n", e.what());
return 0;
}
init = true;