Skip to content

Commit 6d870d2

Browse files
committed
Raise error in findItemByShape
1 parent c0d99dc commit 6d870d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

labelme/widgets/label_list_widget.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ def findItemByShape(self, shape):
179179
item = self.model().item(row, 0)
180180
if item.shape() == shape:
181181
return item
182+
raise ValueError("cannot find shape: {}".format(shape))
182183

183184
def clear(self):
184185
self.model().clear()

0 commit comments

Comments
 (0)