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

@@ -147,14 +147,14 @@ void Exception::setPyObject( PyObject * pydict)
PyObject * Exception::getPyExceptionType() const
{
return BaseExceptionFreeCADError;
return PyExc_FC_GeneralError;
}
void Exception::setPyException() const
{
PyObject* exc = getPyExceptionType();
if (!exc) {
exc = BaseExceptionFreeCADError;
exc = PyExc_FC_GeneralError;
}
PyErr_SetString(exc, what());