From e379d57376bf297690d2fe801be059aaf141b042 Mon Sep 17 00:00:00 2001 From: echel0n Date: Tue, 29 Apr 2014 08:23:32 -0700 Subject: [PATCH] Fix for showobj none type --- sickbeard/tvcache.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sickbeard/tvcache.py b/sickbeard/tvcache.py index 732cdb4e..4b1e9594 100644 --- a/sickbeard/tvcache.py +++ b/sickbeard/tvcache.py @@ -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