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,6 +735,7 @@ def main(): ...@@ -735,6 +735,7 @@ def main():
if args.ijson: if args.ijson:
json_clones = vparser.extract(path_name) json_clones = vparser.extract(path_name)
clones = json.loads(json_clones) clones = json.loads(json_clones)
if clones["clones"] is not None:
f += [c['id'] for c in clones["clones"]] f += [c['id'] for c in clones["clones"]]
else: else:
jlist = ListWindows() jlist = ListWindows()
......
...@@ -49,6 +49,9 @@ class VidjilWriter(object): ...@@ -49,6 +49,9 @@ class VidjilWriter(object):
else: else:
if event == 'boolean': if event == 'boolean':
value = str(value).lower() value = str(value).lower()
if value is None:
mstr = 'null'
else:
mstr = '{}' mstr = '{}'
padding = '' padding = ''
if isinstance(value, string_types) : if isinstance(value, string_types) :
......
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