be less verbose when there is additional stuff in a label file

This commit is contained in:
Martin Baeuml
2013-04-08 11:07:22 +02:00
parent f280970dd3
commit b3392170d0
+2 -2
View File
@@ -105,13 +105,13 @@ class AnnotationScene(QGraphicsScene):
try:
label_class = child['class']
except KeyError:
LOG.error('Could not find key class in annotation item. Skipping this item. Please check your label file.')
LOG.debug('Could not find key class in annotation item. Skipping this item. Please check your label file.')
continue
item = self._itemfactory.create(label_class, child)
if item is not None:
self.addItem(item)
else:
LOG.warn("Could not find item for annotation with class '%s'" % label_class)
LOG.debug("Could not find item for annotation with class '%s'" % label_class)
def deleteSelectedItems(self):
# some (graphics) items may share the same model item