mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
FIX: Ignore exception if attempted deletion fails (fixes #817)
This commit is contained in:
@@ -167,7 +167,10 @@ def _assemble_contours(points_iterator):
|
|||||||
head.extend(tail)
|
head.extend(tail)
|
||||||
# remove all traces of tail:
|
# remove all traces of tail:
|
||||||
del starts[to_point]
|
del starts[to_point]
|
||||||
del ends[tail[-1]]
|
try:
|
||||||
|
del ends[tail[-1]]
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
del contours[tail_num]
|
del contours[tail_num]
|
||||||
# remove the old end of head and add the new end.
|
# remove the old end of head and add the new end.
|
||||||
del ends[from_point]
|
del ends[from_point]
|
||||||
|
|||||||
Reference in New Issue
Block a user