Merge pull request #1743 from croneter/py3-fix-additional-artwork
Fix additional artwork download crashing if there was no sensible reply
This commit is contained in:
commit
ac50ed668f
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