--- src/Mod/Part/App/TopoShapePyImp.cpp.orig 2026-07-01 20:30:18 UTC +++ src/Mod/Part/App/TopoShapePyImp.cpp @@ -63,8 +63,10 @@ #include #include #include -#include #include +#include +#include +#include #include #include @@ -1539,7 +1541,7 @@ PyObject* TopoShapePy::isClosed(PyObject* args) const try { if (getTopoShapePtr()->getShape().IsNull()) { - Standard_Failure::Raise("Cannot determine the 'Closed'' flag of an empty shape"); + throw Standard_Failure("Cannot determine the 'Closed'' flag of an empty shape"); } return Py_BuildValue("O", (getTopoShapePtr()->isClosed() ? Py_True : Py_False)); }