MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / __display_proxy_warning

Function __display_proxy_warning

seleniumbase/core/proxy_helper.py:223–236  ·  view source on GitHub ↗
(proxy_string)

Source from the content-addressed store, hash-verified

221
222
223def __display_proxy_warning(proxy_string):
224 message = (
225 '\nWARNING: Proxy String ["%s"] is NOT in the expected '
226 '"ip_address:port" or "server:port" format, '
227 "(OR the key does not exist in "
228 "seleniumbase.config.proxy_list.PROXY_LIST)." % proxy_string
229 )
230 if settings.RAISE_INVALID_PROXY_STRING_EXCEPTION:
231 raise Exception(message)
232 else:
233 message += " *** DEFAULTING to NOT USING a Proxy Server! ***"
234 warnings.simplefilter("always", Warning) # See Warnings
235 warnings.warn(message, category=Warning, stacklevel=2)
236 warnings.simplefilter("default", Warning) # Set Default

Callers 1

validate_proxy_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…