diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 91e94c50..cbb35178 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -194,6 +194,7 @@ py::object CastShape(const TopoDS_Shape & s) case TopAbs_SHAPE: return py::cast(s); } + throw Exception("Invalid Shape type"); };