Added some failsafe to deal with improper JSON returned from Radarr tags API endpoint.

pull/1689/head^2 v1.0.3-beta.11
morpheus65535 3 years ago
parent 9b48b59860
commit 62ef614d30

@ -365,8 +365,14 @@ def get_tags():
except requests.exceptions.RequestException:
logging.exception("BAZARR Error trying to get tags from Radarr.")
return []
except requests.exceptions.HTTPError:
logging.exception("BAZARR Exception while trying to get tags from Radarr.")
return []
else:
return tagsDict.json()
try:
return tagsDict.json()
except Exception:
return []
def movieParser(movie, action, tags_dict, movie_default_profile, audio_profiles):

Loading…
Cancel
Save