Commit f7aba2f1 authored by Guillaume HEUSCH's avatar Guillaume HEUSCH

[database] fixed annotations in HQWMCA

parent 3318d319
Pipeline #36566 failed with stage
in 11 minutes and 25 seconds
......@@ -189,7 +189,9 @@ class HQWMCAPadDatabase(PadDatabase):
if self.annotations_dir is not None:
annotations_file = os.path.join(self.annotations_dir, file.path + ".json")
with open(annotations_file, 'r') as json_file:
annotations = json.load(annotations_file)
annotations = json.load(json_file)
if not annotations:
return None
return annotations
return None
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment