Migration: Don't fail on missing release file
This commit is contained in:
1 parent
4b9e226cc6
commit
fa054b6b34
1 file changed
+4
-1
@@ -579,7 +579,10 @@ class Database(object):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
for f in release_files:
|
for f in release_files:
|
||||||
rfile = all_files[f.get('file_id')]
|
rfile = all_files.get(f.get('file_id'))
|
||||||
|
if not rfile:
|
||||||
|
continue
|
||||||
|
|
||||||
file_type = type_by_id.get(rfile.get('type_id')).get('identifier')
|
file_type = type_by_id.get(rfile.get('type_id')).get('identifier')
|
||||||
|
|
||||||
if not release['files'].get(file_type):
|
if not release['files'].get(file_type):
|
||||||
|
|||||||
Reference in new issue
Block a user