summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-10-29 22:42:58 -0400
committermorpheus65535 <[email protected]>2021-10-29 22:42:58 -0400
commite6c1dba37bc9351c10612924d56177107d6a46a6 (patch)
tree1f0782ad05258f6fde267253852a0649339828dd
parent0e50335e2d26597cac20ee5264a78ea9c53e7ce0 (diff)
downloadbazarr-e6c1dba37bc9351c10612924d56177107d6a46a6.tar.gz
bazarr-e6c1dba37bc9351c10612924d56177107d6a46a6.zip
Fixed Radarr API call to get version with the latest nightly.v1.0.1-beta.6
-rw-r--r--bazarr/utils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bazarr/utils.py b/bazarr/utils.py
index 3b739aca7..dfb1c7799 100644
--- a/bazarr/utils.py
+++ b/bazarr/utils.py
@@ -315,8 +315,10 @@ class GetRadarrInfo:
if 'version' in radarr_json:
radarr_version = radarr_json['version']
else:
- rv = url_radarr() + "/api/v3/system/status?apikey=" + settings.radarr.apikey
- radarr_version = requests.get(rv, timeout=60, verify=False, headers=headers).json()['version']
+ 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']
except Exception as e:
logging.debug('BAZARR cannot get Radarr version')
radarr_version = 'unknown'