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?
This commit is contained in:
mano3m
2014-06-23 21:10:11 +02:00
parent f01449f14c
commit 5af5749d4a
+4 -1
View File
@@ -449,7 +449,10 @@ class Renamer(Plugin):
# Get media quality profile
profile = None
if media.get('profile_id'):
profile = db.get('id', media['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)