prepare for PyCXX 7.0

This commit is contained in:
wmayer
2018-04-18 19:20:50 +02:00
parent c4aaef4033
commit 840c9e8b3c
36 changed files with 226 additions and 239 deletions

View File

@@ -144,8 +144,7 @@ void PointPy::setX(Py::Float X)
this_point->SetX(double(X));
}
catch (Standard_Failure& e) {
throw Py::Exception(e.GetMessageString());
throw Py::RuntimeError(e.GetMessageString());
}
}
@@ -165,8 +164,7 @@ void PointPy::setY(Py::Float Y)
this_point->SetY(double(Y));
}
catch (Standard_Failure& e) {
throw Py::Exception(e.GetMessageString());
throw Py::RuntimeError(e.GetMessageString());
}
}
@@ -186,8 +184,7 @@ void PointPy::setZ(Py::Float Z)
this_point->SetZ(double(Z));
}
catch (Standard_Failure& e) {
throw Py::Exception(e.GetMessageString());
throw Py::RuntimeError(e.GetMessageString());
}
}