summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2014-12-16 22:49:24 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2014-12-16 22:49:24 -0600
commitbd3cf95e34aa49c8d764c899672048df107e0d70 (patch)
treeaf9a8ba787c19985132b7b6cda9c3cb7559699e2
parent386c589ba0832eed62aef91a30adaed3d5648d1c (diff)
downloadpython-requests-bd3cf95e34aa49c8d764c899672048df107e0d70.tar.gz
Fix error handling on Python 3
-rw-r--r--requests/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/requests/models.py b/requests/models.py
index 22b6d110..b728c84e 100644
--- a/requests/models.py
+++ b/requests/models.py
@@ -353,7 +353,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
try:
scheme, auth, host, port, path, query, fragment = parse_url(url)
except LocationParseError as e:
- raise InvalidURL(e.message)
+ raise InvalidURL(*e.args)
if not scheme:
raise MissingSchema("Invalid URL {0!r}: No schema supplied. "