Skip to content
Myr

Merge pull request #1693 from kevinburke/schema-message

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

Add clarification to MissingSchema error

authored by Kenneth Reitz · committed by Kenneth Reitz · parents dd777b3, b5d2160 · 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 {0!r}: No schema supplied. "328 "Perhaps you meant http://{0}?".format(url))329330 if not host:331 raise InvalidURL("Invalid URL %r: No host supplied" % url)332
402 unmodified lines