Changed all catch types to references for polymorphic exceptions.
This commit is contained in:
@@ -119,7 +119,7 @@ int TopoShapeSolidPy::PyInit(PyObject* args, PyObject* /*kwd*/)
|
||||
}
|
||||
|
||||
}
|
||||
catch (Standard_Failure err) {
|
||||
catch (Standard_Failure& err) {
|
||||
std::stringstream errmsg;
|
||||
errmsg << "Creation of solid failed: " << err.GetMessageString();
|
||||
PyErr_SetString(PartExceptionOCCError, errmsg.str().c_str());
|
||||
|
||||
Reference in New Issue
Block a user