Skip to content
Myr

Fix error handling on Python 3

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ian Cordasco · committed by Ian Cordasco · parent 386c589 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
351 unmodified lines
352 # Support for unicode domain names and paths.353 try:354 scheme, auth, host, port, path, query, fragment = parse_url(url)355 except LocationParseError as e:356 raise InvalidURL(e.message)356 raise InvalidURL(*e.args)357358 if not scheme:359 raise MissingSchema("Invalid URL {0!r}: No schema supplied. "360 "Perhaps you meant http://{0}?".format(url))
479 unmodified lines