diff --git a/bazarr/utils.py b/bazarr/utils.py index a61df9c55..f75776d37 100644 --- a/bazarr/utils.py +++ b/bazarr/utils.py @@ -319,8 +319,12 @@ class GetRadarrInfo: else: raise json.decoder.JSONDecodeError except json.decoder.JSONDecodeError: - rv = url_radarr() + "/api/v3/system/status?apikey=" + settings.radarr.apikey - radarr_version = requests.get(rv, timeout=60, verify=False, headers=headers).json()['version'] + try: + rv = url_radarr() + "/api/v3/system/status?apikey=" + settings.radarr.apikey + radarr_version = requests.get(rv, timeout=60, verify=False, headers=headers).json()['version'] + except json.decoder.JSONDecodeError: + logging.debug('BAZARR cannot get Radarr version') + radarr_version = 'unknown' except Exception: logging.debug('BAZARR cannot get Radarr version') radarr_version = 'unknown'