diff --git a/src/Base/PyObjectBase.h b/src/Base/PyObjectBase.h index 131e015dea..201381a290 100644 --- a/src/Base/PyObjectBase.h +++ b/src/Base/PyObjectBase.h @@ -466,13 +466,13 @@ BaseExport extern PyObject* BaseExceptionFreeCADAbort; { \ e.ReportException(); \ auto pye = e.getPyExceptionType(); \ - if(!pye) \ + if(!pye) \ pye = Base::BaseExceptionFreeCADError; \ _Py_ErrorObj(R,pye,e.getPyObject()); \ } \ catch(std::exception &e) \ { \ - _Py_Error(R,Base::BaseExceptionFreeCADError,e.what()); \ + _Py_Error(R,Base::BaseExceptionFreeCADError,e.what()); \ } \ catch(const Py::Exception&) \ { \