From 4b15563ba3a192c93b00bc38bc60918a8ccfe1c3 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 14 Aug 2013 12:13:52 +0200 Subject: [PATCH] Don't use in_progress when it isn't set --- couchpotato/core/plugins/manage/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/plugins/manage/main.py b/couchpotato/core/plugins/manage/main.py index 454e765c..03123a11 100644 --- a/couchpotato/core/plugins/manage/main.py +++ b/couchpotato/core/plugins/manage/main.py @@ -192,6 +192,9 @@ class Manage(Plugin): # Notify frontend def afterUpdate(): + if not self.in_progress: + return + self.in_progress[folder]['to_go'] = self.in_progress[folder]['to_go'] - 1 total = self.in_progress[folder]['total'] movie_dict = fireEvent('movie.get', identifier, single = True)