Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
c313f18f
Commit
c313f18f
authored
Jan 08, 2016
by
Mathieu Giraud
Committed by
Vidjil Team
Jan 20, 2016
Browse files
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/fuse.py
View file @
c313f18f
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment