Skip to content
Myr

Give a more useful error message when the URL supplied does not contain a schema.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jonas Obrist · committed by Jonas Obrist · parent 638532d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
296 unmodified lines
297 # Support for unicode domain names and paths.298 scheme, netloc, path, params, query, fragment = urlparse(self.url)299300 if not scheme:301 raise ValueError()301 raise ValueError("Invalid URL %r: No schema supplied" %r self.url)302303 netloc = netloc.encode('idna')304305 if isinstance(path, unicode):
403 unmodified lines