Py: replace BaseExceptionFreeCADError with more suitable exception types
This commit is contained in:
@@ -111,7 +111,7 @@ PyObject* TrajectoryPy::insertWaypoints(PyObject * args)
|
||||
return new TrajectoryPy(new Robot::Trajectory(*getTrajectoryPtr()));
|
||||
}
|
||||
|
||||
Py_Error(Base::BaseExceptionFreeCADError, "Wrong parameters - waypoint or placement expected");
|
||||
Py_Error(PyExc_TypeError, "Wrong parameters - waypoint or placement expected");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user