Fix additional artwork download crashing if there was no sensible reply

This commit is contained in:
croneter 2021-12-22 14:09:52 +01:00
parent 72b6a3fb7c
commit 14b59ff31f

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