Commit c313f18f authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

fuse.py: be robust against 'null' value for clones in .vidjil files

Some .vidjil files have 'clones: null' instead of an empty list.
parent d2a456fe
......@@ -330,6 +330,9 @@ class ListWindows(VidjilJson):
with open(file_path, "r") as file:
tmp = json.load(file, object_hook=self.toPython)
self.d=tmp.d
# Be robust against 'null' values for clones
if not self.d["clones"]:
self.d["clones"] = []
self.check_version(file_path)
if 'distribution' not in self.d['reads'].d:
......
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