Commit cb9a8c4b authored by HinGwenWoong's avatar HinGwenWoong
Browse files

Fix when has not `difficult` field will crash

parent d1f21650
......@@ -1440,7 +1440,7 @@ class MainWindow(QMainWindow):
if imgidx in self.PPlabel.keys():
for box in self.PPlabel[imgidx]:
key_cls = None if not self.kie_mode else box['key_cls']
shapes.append((box['transcription'], box['points'], None, key_cls, box['difficult']))
shapes.append((box['transcription'], box['points'], None, key_cls, box.get('difficult', False)))
self.loadLabels(shapes)
self.canvas.verified = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment