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:
croneter 2021-12-22 14:48:43 +01:00 committed by GitHub
commit ac50ed668f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()