mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fix for showobj none type
This commit is contained in:
parent
77bc5c7291
commit
e379d57376
1 changed files with 4 additions and 1 deletions
|
@ -244,13 +244,16 @@ class TVCache():
|
|||
break
|
||||
|
||||
# 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
|
||||
|
||||
# if the show isn't in out database then return None
|
||||
try:showObj = helpers.findCertainShow(sickbeard.showList, indexer_id)
|
||||
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
|
||||
season = None
|
||||
episodes = None
|
||||
|
|
Loading…
Reference in a new issue