add type check for upstream
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Roy Olav Purser 2022-02-12 14:04:18 +01:00
parent 7fe68c882e
commit 77c5e5757e
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -80,7 +80,7 @@ class ProxyElem:
clean_urls = [] clean_urls = []
link_requests: list[ProxyCreateLink] = [] link_requests: list[ProxyCreateLink] = []
for url in urls: 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): if not isinstance(proxy_server, str):
return clean_urls return clean_urls