Commit 3348cbbd authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

tools/utils.py: fix version check

parent 6743f056
......@@ -203,7 +203,7 @@ class VidjilJson():
def check_version(self, filepath):
'''Check vidjil_json_version'''
if "vidjil_json_version" in self.d:
if self.d["vidjil_json_version"] <= defs.VIDJIL_JSON_VERSION:
if self.d["vidjil_json_version"] >= defs.VIDJIL_JSON_VERSION:
return
raise IOError ("File '%s' is too old -- please regenerate it with a newer version of Vidjil" % filepath)
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