From 333ac101baffd01c6eca1c4c61b1d620e4d8ca70 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Sun, 20 Oct 2013 00:46:41 -0700 Subject: [PATCH] Add clarification to MissingSchema error --- requests/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requests/models.py b/requests/models.py index ee2ca9e..c836c60 100644 --- a/requests/models.py +++ b/requests/models.py @@ -324,7 +324,8 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin): scheme, auth, host, port, path, query, fragment = parse_url(url) if not scheme: - raise MissingSchema("Invalid URL %r: No schema supplied" % url) + raise MissingSchema("Invalid URL %r: No schema supplied. " + "Perhaps you meant http://%s?" % (url, url)) if not host: raise InvalidURL("Invalid URL %r: No host supplied" % url) -- 2.34.1