MCPcopy
hub / github.com/urllib3/urllib3 / LocationParseError

Class LocationParseError

src/urllib3/exceptions.py:196–203  ·  view source on GitHub ↗

Raised when get_host or similar fails to parse the URL input.

Source from the content-addressed store, hash-verified

194
195
196class LocationParseError(LocationValueError):
197 """Raised when get_host or similar fails to parse the URL input."""
198
199 def __init__(self, location: str) -> None:
200 message = f"Failed to parse: {location}"
201 super().__init__(message)
202
203 self.location = location
204
205
206class URLSchemeUnknown(LocationValueError):

Callers 4

_idna_encodeFunction · 0.85
_encode_targetFunction · 0.85
parse_urlFunction · 0.85
create_connectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected