projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
386c589
)
Fix error handling on Python 3
author
Ian Cordasco
<graffatcolmingov@gmail.com>
Wed, 17 Dec 2014 04:49:24 +0000
(22:49 -0600)
committer
Ian Cordasco
<graffatcolmingov@gmail.com>
Wed, 17 Dec 2014 04:49:24 +0000
(22:49 -0600)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index 22b6d1104672b994a939f072f3e3a13ddf6ff63e..b728c84e41b2e547ab12e37caa235f94b756f630 100644
(file)
--- 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. "