mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 19:32:26 +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)
|
||||
# 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]
|
||||
|
||||
Reference in New Issue
Block a user