Skip to content

Commit

Permalink
fix bug 2540
Browse files Browse the repository at this point in the history
  • Loading branch information
sh1buy committed Apr 11, 2015
1 parent f02d0f9 commit 599f834
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(to_native_string(url,encoding='utf8')))
"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 599f834

Please sign in to comment.