From 77c5e5757e9ce427a306b2ed3b7f93afcb5f1f46 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 12 Feb 2022 14:04:18 +0100 Subject: [PATCH] add type check for upstream --- backend/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/config.py b/backend/config.py index 8be2e04..f308c4d 100644 --- a/backend/config.py +++ b/backend/config.py @@ -80,7 +80,7 @@ class ProxyElem: clean_urls = [] link_requests: list[ProxyCreateLink] = [] for url in urls: - clean_urls.append(url.upstream) + clean_urls.append(url.upstream if isinstance(url.upstream, str) else None) if not isinstance(proxy_server, str): return clean_urls