add type check for upstream
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
7fe68c882e
commit
77c5e5757e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user