From 5ec5dde9bab216e8168dda89b6b394c9b39be035 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 11 May 2014 08:58:56 -0700 Subject: [PATCH] Fix for show_queue errors when loading a show --- sickbeard/show_queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/show_queue.py b/sickbeard/show_queue.py index aa498695..74ab73fb 100644 --- a/sickbeard/show_queue.py +++ b/sickbeard/show_queue.py @@ -42,7 +42,7 @@ class ShowQueue(generic_queue.GenericQueue): def _isInQueue(self, show, actions): shows = [x.show for x in self.queue.queue if x.action_id in actions] if not self.queue.empty() else [] - if self.currentItem.action_id in actions: + if self.currentItem != None and self.currentItem.action_id in actions: shows.append(self.currentItem) return show in shows