Skip to content
Myr

Add clarification to MissingSchema error

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

authored by Kevin Burke · committed by Kevin Burke · parent e91ee0e · Browse files · 1 file+2 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/models.py+2 added-1 removed
322 unmodified lines
323 # Support for unicode domain names and paths.324 scheme, auth, host, port, path, query, fragment = parse_url(url)325326 if not scheme:327 raise MissingSchema("Invalid URL %r: No schema supplied" % url)327 raise MissingSchema("Invalid URL %r: No schema supplied. "328 "Perhaps you meant http://%s?" % (url, url))329330 if not host:331 raise InvalidURL("Invalid URL %r: No host supplied" % url)332
402 unmodified lines