Skip to content

Commit 60b4119

Browse files
authored
Merge pull request #178 from KumarLabJax/fix-search-bug-if-no-json
Fix search bug if no json
2 parents 685fa71 + e48e8dd commit 60b4119

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "jabs-behavior-classifier"
3-
version = "0.32.0"
3+
version = "0.32.1"
44
license = "Proprietary"
55
repository = "https://github.com/KumarLabJax/JABS-behavior-classifier"
66
description = ""

src/jabs/ui/behavior_search_dialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def run(self):
3636
video_manager = self.project.video_manager
3737
for video in video_manager.videos:
3838
anno_dict = video_manager.load_annotations(video)
39-
if "annotations" in anno_dict:
40-
for annotation in anno_dict["annotations"]:
39+
if anno_dict is not None:
40+
for annotation in anno_dict.get("annotations", []):
4141
if "tag" in annotation:
4242
all_tags.add(annotation["tag"])
4343

0 commit comments

Comments
 (0)