Skip to content

Commit

Permalink
Wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
gagelarsen committed Sep 27, 2018
1 parent 8727f9e commit da46adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmscore/python/misc/PyUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ py::tuple PyIterFromPt3d(const Pt3d& pt)
/// \param[in] pt: py::iterable object that represents a Pt2d
/// \return a boost::shared_ptr to a Pt2d
//------------------------------------------------------------------------------
Pt3d Pt2dFromPyIter(const py::tuple& pt)
Pt2d Pt2dFromPyIter(const py::tuple& pt)
{
if(py::len(pt) > 2 || py::len(pt) < 0) { // 0 check might not be needed but just to be safe
throw py::type_error("Input point should be a an empty tuple, or a 1, or 2 tuple");
Expand Down

0 comments on commit da46adc

Please sign in to comment.