Commit c313f18f authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files 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)
# Be robust against 'null' values for clones
if not self.d["clones"]:
self.d["clones"] = []
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