diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-12-18 20:31:53 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-12-18 20:32:14 -0500 |
| commit | 3cf7f1547c9162f81afcbfb53df65b0897b43059 (patch) | |
| tree | fdc6e4d22dc57a9208ae59d96788394a2be24f29 | |
| parent | dc77f5cebcdfa4e1fdeff9c8b231061f5b07de42 (diff) | |
fix error message
| -rw-r--r-- | lib/elements/satin_column.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index 1f9854ed..a1ecfb47 100644 --- a/lib/elements/satin_column.py +++ b/lib/elements/satin_column.py @@ -1,12 +1,13 @@ -from itertools import chain, izip from copy import deepcopy -from shapely import geometry as shgeo, affinity as shaffinity +from itertools import chain, izip + import cubicsuperpath +from shapely import geometry as shgeo, affinity as shaffinity -from .element import param, EmbroideryElement, Patch from ..i18n import _ -from ..utils import cache, Point, cut, collapse_duplicate_point from ..svg import line_strings_to_csp, point_lists_to_csp +from ..utils import cache, Point, cut, collapse_duplicate_point +from .element import param, EmbroideryElement, Patch class SatinColumn(EmbroideryElement): @@ -255,7 +256,7 @@ class SatinColumn(EmbroideryElement): intersections += len(intersection) break elif not isinstance(intersection, shgeo.Point): - self.fatal("intersection is a: %s %s" % (intersection, intersection.geoms)) + self.fatal("INTERNAL ERROR: intersection is: %s %s" % (intersection, getattr(intersection, 'geoms', None))) else: intersections += 1 |
