summaryrefslogtreecommitdiffhomepage
path: root/bazarr/sonarr/sync/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'bazarr/sonarr/sync/utils.py')
-rw-r--r--bazarr/sonarr/sync/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bazarr/sonarr/sync/utils.py b/bazarr/sonarr/sync/utils.py
index 3c3d8282d..d1eb4495f 100644
--- a/bazarr/sonarr/sync/utils.py
+++ b/bazarr/sonarr/sync/utils.py
@@ -30,6 +30,10 @@ def get_profile_list():
logging.exception("BAZARR Error trying to get profiles from Sonarr.")
return None
+ # return an empty list when using Sonarr v4 that do not support series languages profiles anymore
+ if profiles_json.status_code == 404:
+ return profiles_list
+
# Parsing data returned from Sonarr
if get_sonarr_info.is_legacy():
for profile in profiles_json.json():