Try and encode logging messages. fix #403
This commit is contained in:
@@ -78,7 +78,7 @@ class LibraryPlugin(Plugin):
|
||||
except: pass
|
||||
|
||||
if not info or len(info) == 0:
|
||||
log.error('Could not update, no movie info to work with: %s' % identifier)
|
||||
log.error('Could not update, no movie info to work with: %s', identifier)
|
||||
return False
|
||||
|
||||
# Main info
|
||||
@@ -95,7 +95,7 @@ class LibraryPlugin(Plugin):
|
||||
db.commit()
|
||||
|
||||
titles = info.get('titles', [])
|
||||
log.debug('Adding titles: %s' % titles)
|
||||
log.debug('Adding titles: %s', titles)
|
||||
for title in titles:
|
||||
if not title:
|
||||
continue
|
||||
@@ -123,7 +123,7 @@ class LibraryPlugin(Plugin):
|
||||
library.files.append(file_obj)
|
||||
db.commit()
|
||||
except:
|
||||
log.debug('Failed to attach to library: %s' % traceback.format_exc())
|
||||
log.debug('Failed to attach to library: %s', traceback.format_exc())
|
||||
|
||||
library_dict = library.to_dict(self.default_dict)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user