diff --git a/couchpotato/core/plugins/dashboard.py b/couchpotato/core/plugins/dashboard.py index afead44..0f23b5a 100644 --- a/couchpotato/core/plugins/dashboard.py +++ b/couchpotato/core/plugins/dashboard.py @@ -1,6 +1,6 @@ import random as rndm import time -from CodernityDB.database import RecordDeleted +from CodernityDB.database import RecordDeleted, RecordNotFound from couchpotato import get_db from couchpotato.api import addApiView @@ -64,6 +64,10 @@ class Dashboard(Plugin): except RecordDeleted: log.debug('Record already deleted: %s', media_id) continue + + except RecordNotFound: + log.debug('Record not found: %s', media_id) + continue pp = profile_pre.get(media.get('profile_id')) if not pp: continue