From dbee4b6dbf58862925be9fe55640702b75130b2f Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 28 Apr 2014 23:04:32 -0700 Subject: [PATCH] Fix for issues getting indexerID during cache updates --- sickbeard/tvcache.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sickbeard/tvcache.py b/sickbeard/tvcache.py index 11faf289..c5d6f948 100644 --- a/sickbeard/tvcache.py +++ b/sickbeard/tvcache.py @@ -275,7 +275,11 @@ class TVCache(): logger.log( u"Checking Indexers for Indexer ID of " + parse_result.series_name, logger.DEBUG) - indexerResult = helpers.searchIndexerForShowID(parse_result.series_name) + + # check indexers + try:indexerResult = helpers.searchIndexerForShowID(parse_result.series_name) + except:indexerResult = None + if indexerResult: logger.log( u"" + str(parse_result.series_name) + " was found on " + str(sickbeard.indexerApi(indexerResult[0]).name) + " with Indexer ID: " + str(indexerResult[1]), logger.DEBUG)