FIX: Ignore exception if attempted deletion fails (fixes #817)

This commit is contained in:
Josh Warner (Mac)
2015-02-28 13:16:56 -06:00
parent 3f6d9fa985
commit ea02a4e348
+4 -1
View File
@@ -167,7 +167,10 @@ def _assemble_contours(points_iterator):
head.extend(tail)
# remove all traces of tail:
del starts[to_point]
del ends[tail[-1]]
try:
del ends[tail[-1]]
except KeyError:
pass
del contours[tail_num]
# remove the old end of head and add the new end.
del ends[from_point]