From 69df0271b5e9c5be8ff0d16fe6e24f1e7ed8e6fc Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 20 Mar 2019 20:35:54 -0400 Subject: [PATCH] protect against shapely error --- lib/stitches/auto_fill.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index b85d335e5..8435d156c 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -268,6 +268,11 @@ def build_travel_graph(fill_stitch_graph, shape, fill_stitch_angle, underpath): graph.add_edge(*edge, weight=p1.distance(p2)) + # otherwise we sometimes get exceptions like this: + # Exception AttributeError: "'NoneType' object has no attribute 'GEOSSTRtree_destroy'" in + # > ignored + del rtree + return graph