diff --git a/svgpathtools/path.py b/svgpathtools/path.py index 8ccab5c..89f505c 100644 --- a/svgpathtools/path.py +++ b/svgpathtools/path.py @@ -2573,6 +2573,8 @@ class Path(MutableSequence): # Shortcuts if len(self._segments) == 0: raise ValueError("This path contains no segments!") + if pos < 0.0 or pos > 1.0: + raise ValueError("Pos for Path.point must be between 0 and 1, but was {}".format(pos)) if pos == 0.0: return self._segments[0].point(pos) if pos == 1.0: