Fix additional artwork download crashing if there was no sensible reply
This commit is contained in:
parent
72b6a3fb7c
commit
14b59ff31f
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ class Artwork(object):
|
||||||
authenticate=False,
|
authenticate=False,
|
||||||
timeout=15,
|
timeout=15,
|
||||||
return_response=True)
|
return_response=True)
|
||||||
if not data.ok:
|
if data in (None, 401) or not data.ok:
|
||||||
LOG.debug('Could not download data from FanartTV')
|
LOG.debug('Could not download data from FanartTV')
|
||||||
return artworks
|
return artworks
|
||||||
data = data.json()
|
data = data.json()
|
||||||
|
|
Loading…
Reference in a new issue