Sketcher: Use transparent exception mechanism for fillets

=========================================================

This ensures that the exception back in the c++ that invoked python retains the type of exception and can be properly catched.
This commit is contained in:
Abdullah Tahiri
2018-10-27 08:43:14 +02:00
committed by wmayer
parent 578ea97647
commit a93a5e9c93

View File

@@ -876,9 +876,9 @@ PyObject* SketchObjectPy::fillet(PyObject *args)
if (this->getSketchObjectPtr()->fillet(geoId1, geoId2, v1, v2, radius, trim?true:false)) {
std::stringstream str;
str << "Not able to fillet lineSegments with ids : (" << geoId1 << ", " << geoId2 << ") and points (" << v1.x << ", " << v1.y << ", " << v1.z << ") & "
str << "Not able to fillet curves with ids : (" << geoId1 << ", " << geoId2 << ") and points (" << v1.x << ", " << v1.y << ", " << v1.z << ") & "
<< "(" << v2.x << ", " << v2.y << ", " << v2.z << ")";
PyErr_SetString(PyExc_ValueError, str.str().c_str());
THROWM(Base::ValueError, str.str().c_str())
return 0;
}
Py_Return;