Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user