Skip to content

Commit

Permalink
Merge pull request psf#2547 from sh1buy/bug_2540
Browse files Browse the repository at this point in the history
Fix MisssingSchema error message does not handle unicode input correctly psf#2540
  • Loading branch information
sigmavirus24 committed Apr 11, 2015
2 parents ccc03b9 + 599f834 commit 5478dd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion requests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ def prepare_url(self, url, params):

if not scheme:
raise MissingSchema("Invalid URL {0!r}: No schema supplied. "
"Perhaps you meant http://{0}?".format(url))
"Perhaps you meant http://{0}?"
.format(to_native_string(url, 'utf8')))

if not host:
raise InvalidURL("Invalid URL %r: No host supplied" % url)
Expand Down

0 comments on commit 5478dd6

Please sign in to comment.