mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-12 14:13:38 +00:00
Fix for show_queue errors when loading a show
This commit is contained in:
parent
e05344d571
commit
5ec5dde9ba
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class ShowQueue(generic_queue.GenericQueue):
|
||||||
|
|
||||||
def _isInQueue(self, show, actions):
|
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 []
|
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)
|
shows.append(self.currentItem)
|
||||||
|
|
||||||
return show in shows
|
return show in shows
|
||||||
|
|
Loading…
Reference in a new issue