Commit 19d68ea9 authored by Ryan Herbert's avatar Ryan Herbert

fuse.py, vidjilparser.py fix issue when no clones

allows vidjil files to contain no clones
parent c09e6d0a
Pipeline #36180 passed with stage
in 7 seconds
......@@ -735,7 +735,8 @@ def main():
if args.ijson:
json_clones = vparser.extract(path_name)
clones = json.loads(json_clones)
f += [c['id'] for c in clones["clones"]]
if clones["clones"] is not None:
f += [c['id'] for c in clones["clones"]]
else:
jlist = ListWindows()
jlist.load(path_name, args.pipeline)
......
......@@ -49,7 +49,10 @@ class VidjilWriter(object):
else:
if event == 'boolean':
value = str(value).lower()
mstr = '{}'
if value is None:
mstr = 'null'
else:
mstr = '{}'
padding = ''
if isinstance(value, string_types) :
value = value.replace("\n", "\\n")
......
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