Skip to content

Commit

Permalink
bug: fix annotation parser for mixed tag environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ceesem committed Dec 19, 2024
1 parent 451026a commit 21d3026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nglui/parser/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def _generic_annotations(
tag_list = [anno.get("tagIds", []) for anno in annos]
else:
tag_list = [
[ii for ii, val in enumerate(anno["props"]) if val == 1]
[ii for ii, val in enumerate(anno.get("props", [])) if val == 1]
for anno in annos
]
out.append(tag_list)
Expand Down

0 comments on commit 21d3026

Please sign in to comment.