Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-15 11:15:22 -04:00
parent aa7314e97a
commit e8ccdd6343
+1 -1
View File
@@ -443,7 +443,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
if not uri.scheme:
error = (
"Invalid URL {!r}: No scheme supplied. Perhaps you meant http://{}?"
"Invalid URL {0!r}: No scheme supplied. Perhaps you meant http://{0}?"
)
error = error.format(to_native_string(url, 'utf8'))
raise MissingScheme(error)