diff --git a/xmscore/python/misc/PyUtils.cpp b/xmscore/python/misc/PyUtils.cpp index 900a7cc5b..c0820b71b 100644 --- a/xmscore/python/misc/PyUtils.cpp +++ b/xmscore/python/misc/PyUtils.cpp @@ -98,7 +98,7 @@ boost::shared_ptr VecPt3dFromPyIter(const py::iterable& pts) boost::shared_ptr vec_pts(new xms::VecPt3d()); for (auto item : pts) { if(!py::isinstance(item)) { - throw py::type_error("First arg must be a n-tuple of 0, 1, 2, or 3-tuples"); + throw py::type_error("First arg must be an iterable object"); } py::tuple tuple = item.cast(); Pt3d point; @@ -134,7 +134,7 @@ boost::shared_ptr VecPt2dFromPyIter(const py::iterable& pts) boost::shared_ptr vec_pts(new xms::VecPt2d()); for (auto item : pts) { if(!py::isinstance(item)) { - throw py::type_error("First arg must be a n-tuple of 0, 1, or 2-tuples"); + throw py::type_error("First arg must be an iterable object"); } py::tuple tuple = item.cast(); Pt2d point;