Keep backwards compatibility with old files

Due to an error, old devede files can't be opened with this version.
This patch fixes it.
This commit is contained in:
Sergio Costas 2019-01-06 19:08:13 +01:00
parent f2301c7b19
commit 0c52e14115

View file

@ -722,6 +722,8 @@ class devede_project:
if "files" in project:
error_list = []
for element in project["files"]:
if not "element_type" in element:
element["element_type"] = "file_movie"
if element["element_type"] == "file_movie":
new_file = devedeng.file_movie.file_movie(element["file_name"])
if (new_file.error):