Base: do not report C++ exception when converting it to Python exception
See https://forum.freecadweb.org/viewtopic.php?f=23&t=56464
This commit is contained in:
@@ -463,12 +463,10 @@ BaseExport extern PyObject* BaseExceptionFreeCADAbort;
|
||||
#define __PY_CATCH(R) \
|
||||
catch(Base::AbortException &e) \
|
||||
{ \
|
||||
e.ReportException(); \
|
||||
_Py_ErrorObj(R,Base::BaseExceptionFreeCADAbort,e.getPyObject());\
|
||||
} \
|
||||
catch(Base::Exception &e) \
|
||||
{ \
|
||||
e.ReportException(); \
|
||||
auto pye = e.getPyExceptionType(); \
|
||||
if(!pye) \
|
||||
pye = Base::BaseExceptionFreeCADError; \
|
||||
|
||||
Reference in New Issue
Block a user