From 14b59ff31f6b3ba3db5f716ee1a74202086b6d8a Mon Sep 17 00:00:00 2001 From: croneter Date: Wed, 22 Dec 2021 14:09:52 +0100 Subject: [PATCH] Fix additional artwork download crashing if there was no sensible reply --- resources/lib/plex_api/artwork.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/plex_api/artwork.py b/resources/lib/plex_api/artwork.py index f8b351f8..a5f92842 100644 --- a/resources/lib/plex_api/artwork.py +++ b/resources/lib/plex_api/artwork.py @@ -224,7 +224,7 @@ class Artwork(object): authenticate=False, timeout=15, return_response=True) - if not data.ok: + if data in (None, 401) or not data.ok: LOG.debug('Could not download data from FanartTV') return artworks data = data.json()