mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Fix for showobj none type
This commit is contained in:
parent
77bc5c7291
commit
e379d57376
@ -244,13 +244,16 @@ class TVCache():
|
|||||||
break
|
break
|
||||||
|
|
||||||
# if we didn't find a Indexer ID return None
|
# if we didn't find a Indexer ID return None
|
||||||
if indexer_id is None or indexer_id == None:
|
if not indexer_id:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# if the show isn't in out database then return None
|
# if the show isn't in out database then return None
|
||||||
try:showObj = helpers.findCertainShow(sickbeard.showList, indexer_id)
|
try:showObj = helpers.findCertainShow(sickbeard.showList, indexer_id)
|
||||||
except:return None
|
except:return None
|
||||||
|
|
||||||
|
if not showObj:
|
||||||
|
return None
|
||||||
|
|
||||||
# if we weren't provided with season/episode information then get it from the name that we parsed
|
# if we weren't provided with season/episode information then get it from the name that we parsed
|
||||||
season = None
|
season = None
|
||||||
episodes = None
|
episodes = None
|
||||||
|
Loading…
Reference in New Issue
Block a user