mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 05:33:37 +00:00
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:
parent
ab69e52615
commit
8045976c15
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue