From f7394181417386eccc10a6fd5266c9be2e6acdd5 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 23 Jul 2021 17:30:22 +0200 Subject: [PATCH] test for none proxy env --- backend/stream.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/stream.py b/backend/stream.py index d7f6748..7bcef3f 100755 --- a/backend/stream.py +++ b/backend/stream.py @@ -81,8 +81,10 @@ for key in providers: country = None pos = len(country_groups) - 1 if pos >= 0: - country = country_groups[pos].strip("_") - current_keys.add(f'{key}_{country}') + country_temp = country_groups[pos] + if isinstance(country_temp, str): + country = country_temp.strip("_") + current_keys.add(f'{key}_{country}') proxy = os.environ.get(match) if proxy is not None: current.append(proxy)