Browse Source

Merge pull request #4868 from mixednutts/patch-3

Update dashboard.py to handle RecordNotFound errors
pull/4942/head
Ruud Burger 10 years ago
parent
commit
bc6013c3d7
  1. 6
      couchpotato/core/plugins/dashboard.py

6
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

Loading…
Cancel
Save