Commit 0a1caf1b authored by Olegs NIKISINS's avatar Olegs NIKISINS
Browse files

Addressed empty annotations returning None

parent 6e1824b1
Pipeline #17605 failed with stage
in 18 minutes and 58 seconds
...@@ -283,6 +283,10 @@ class BatlPadDatabase(PadDatabase): ...@@ -283,6 +283,10 @@ class BatlPadDatabase(PadDatabase):
annotations = json.load(json_file) annotations = json.load(json_file)
if not annotations: # if dictionary is empty
return None
return annotations return annotations
......
Supports Markdown
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