From d86bcd33d2c238ab0cc05423be23384e5b0eabe8 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 5 May 2012 02:14:56 +0200 Subject: [PATCH] Only delete in_wanted and in_library if they exist --- couchpotato/core/plugins/library/main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/library/main.py b/couchpotato/core/plugins/library/main.py index 1a4880c..d6eb96d 100644 --- a/couchpotato/core/plugins/library/main.py +++ b/couchpotato/core/plugins/library/main.py @@ -68,7 +68,13 @@ class LibraryPlugin(Plugin): do_update = False else: info = fireEvent('movie.info', merge = True, identifier = identifier) - del info['in_wanted'], info['in_library'] # Don't need those here + + # Don't need those here + try: del info['in_wanted'] + except: pass + try: del info['in_library'] + except: pass + if not info or len(info) == 0: log.error('Could not update, no movie info to work with: %s' % identifier) return False