Catch renamer.after event errors. fix #1032

This commit is contained in:
Ruud
2012-11-10 10:10:05 +01:00
parent f3fd0afb42
commit 655e847aeb
2 changed files with 20 additions and 9 deletions
+4 -1
View File
@@ -383,7 +383,10 @@ class Renamer(Plugin):
# Notify on download, search for trailers etc
download_message = 'Downloaded %s (%s)' % (movie_title, replacements['quality'])
fireEvent('renamer.after', message = download_message, group = group, in_order = True)
try:
fireEvent('renamer.after', message = download_message, group = group, in_order = True)
except:
log.error('Failed firing (some) of the renamer.after events: %s', traceback.format_exc())
# Break if CP wants to shut down
if self.shuttingDown():