Browse Source

Catch missing deleted profile error

@RuudBurger should we reset the profile of the media to default or None
in case this happens or leave it the way it is?
pull/3341/head
mano3m 11 years ago
parent
commit
5af5749d4a
  1. 3
      couchpotato/core/plugins/renamer.py

3
couchpotato/core/plugins/renamer.py

@ -449,7 +449,10 @@ class Renamer(Plugin):
# Get media quality profile
profile = None
if media.get('profile_id'):
try:
profile = db.get('id', media['profile_id'])
except:
log.error('Error getting quality profile for %s: %s', (media_title, traceback.format_exc()))
else:
log.debug('Media has no quality profile: %s', media_title)

Loading…
Cancel
Save