properly raise exception in TopoShapePy::check

This commit is contained in:
wmayer
2017-05-29 16:52:44 +02:00
parent 0bead2c1d4
commit e694d7f90d

View File

@@ -752,7 +752,7 @@ PyObject* TopoShapePy::check(PyObject *args)
std::stringstream str;
if (!getTopoShapePtr()->analyze(PyObject_IsTrue(runBopCheck) ? true : false, str)) {
PyErr_SetString(PyExc_ValueError, str.str().c_str());
PyErr_Print();
return NULL;
}
}