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

Class InvalidURI

src/websockets/exceptions.py:166–177  ·  view source on GitHub ↗

Raised when connecting to a URI that isn't a valid WebSocket URI.

Source from the content-addressed store, hash-verified

164
165
166class InvalidURI(WebSocketException):
167 """
168 Raised when connecting to a URI that isn't a valid WebSocket URI.
169
170 """
171
172 def __init__(self, uri: str, msg: str) -> None:
173 self.uri = uri
174 self.msg = msg
175
176 def __str__(self) -> str:
177 return f"{self.uri} isn't a valid URI: {self.msg}"
178
179
180class InvalidProxy(WebSocketException):

Callers 2

parse_uriFunction · 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…