Skip to content
Myr

Merge pull request #2547 from sh1buy/bug_2540

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

Fix MisssingSchema error message does not handle unicode input correctly #2540

authored by Ian Cordasco · committed by Ian Cordasco · parents ccc03b9, 599f834 · 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
356 unmodified lines
357 raise InvalidURL(*e.args)358359 if not scheme:360 raise MissingSchema("Invalid URL {0!r}: No schema supplied. "361 "Perhaps you meant http://{0}?".format(url))361 "Perhaps you meant http://{0}?"362 .format(to_native_string(url, 'utf8')))363364 if not host:365 raise InvalidURL("Invalid URL %r: No host supplied" % url)366
489 unmodified lines