From a96c8d9522fa1e82fcf2cc7e2b7d7c112f5be1a6 Mon Sep 17 00:00:00 2001 From: l3uddz Date: Sun, 8 Apr 2018 10:36:58 +0100 Subject: [PATCH] dont iterate chosen_tag_ids when no tags were chosen. --- misc/helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/helpers.py b/misc/helpers.py index 7ae5fdd..c5c9f6f 100644 --- a/misc/helpers.py +++ b/misc/helpers.py @@ -25,6 +25,9 @@ def sonarr_series_tag_id_from_network(profile_tags, network_tags, network): def sonarr_readable_tag_from_ids(profile_tag_ids, chosen_tag_ids): try: + if not chosen_tag_ids: + return None + tags = [] for tag_name, tag_id in profile_tag_ids.items(): if tag_id in chosen_tag_ids: