MCPcopy Index your code
hub / github.com/python-websockets/websockets / InvalidProxy

Class InvalidProxy

src/websockets/exceptions.py:180–191  ·  view source on GitHub ↗

Raised when connecting via a proxy that isn't valid.

Source from the content-addressed store, hash-verified

178
179
180class InvalidProxy(WebSocketException):
181 """
182 Raised when connecting via a proxy that isn't valid.
183
184 """
185
186 def __init__(self, proxy: str, msg: str) -> None:
187 self.proxy = proxy
188 self.msg = msg
189
190 def __str__(self) -> str:
191 return f"{self.proxy} isn't a valid proxy: {self.msg}"
192
193
194class InvalidHandshake(WebSocketException):

Callers 2

parse_proxyFunction · 0.85
test_strMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_strMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…