From fa054b6b3419595ecbe30560011fba96fb5f81fd Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 16 Sep 2014 13:55:44 +0200 Subject: [PATCH] Migration: Don't fail on missing release file --- couchpotato/core/database.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/database.py b/couchpotato/core/database.py index 10ae26c2..09f21059 100644 --- a/couchpotato/core/database.py +++ b/couchpotato/core/database.py @@ -579,7 +579,10 @@ class Database(object): continue 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') if not release['files'].get(file_type):