From 40bce690cb02b7b14e9ba286089587e2be55966a Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Mon, 12 May 2014 13:55:56 +0200 Subject: [PATCH] Added error when trying to search but show info is missing --- sickbeard/search.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sickbeard/search.py b/sickbeard/search.py index 8a3d6e80..bf61bf7a 100644 --- a/sickbeard/search.py +++ b/sickbeard/search.py @@ -309,7 +309,12 @@ def filterSearchResults(show, results): return foundResults def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manualSearch=False): - logger.log(u"Searching for stuff we need from " + show.name + " season " + str(season)) + if show: + logger.log(u"Searching for stuff we need from " + show.name + " season " + str(season)) + else: + logger.log(u"Attempting to search for stuff from nonexistent show. Failing.", logger.ERROR) + return False + finalResults = [] didSearch = False