Possible fix for error 500 in web gui when trying to get a show poster and showList is not yet been init'd

This commit is contained in:
echel0n 2014-07-06 07:48:51 -07:00
parent ab69e52615
commit 8045976c15

View file

@ -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: