1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Fix for show_queue errors when loading a show

This commit is contained in:
echel0n 2014-05-11 08:58:56 -07:00
parent e05344d571
commit 5ec5dde9ba

View File

@ -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