From 8045976c1519a2e54e898d737cdcc2b9d6568db4 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 6 Jul 2014 07:48:51 -0700 Subject: [PATCH] Possible fix for error 500 in web gui when trying to get a show poster and showList is not yet been init'd --- sickbeard/helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index e1b943a0..7550a1ec 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -262,6 +262,9 @@ def download_file(url, filename): def findCertainShow(showList, indexerid=None): + if not showList: + return None + if indexerid: results = filter(lambda x: int(x.indexerid) == int(indexerid), showList) else: