8000 Added url to LocationParseError message · github3py/urllib3@de20783 · GitHub
[go: up one dir, main page]

Skip to content

Commit de20783

Browse files
committed
Added url to LocationParseError message
urllib3/util.py + Added the url that couldn't be parsed to LocationParseError message.
1 parent c489556 commit de20783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

urllib3/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def get_host(url):
9999
url, port = url.split(':', 1)
100100

101101
if not port.isdigit():
102-
raise LocationParseError("Failed to parse: %s")
102+
raise LocationParseError("Failed to parse: %s" % url)
103103

104104
port = int(port)
105105

0 commit comments

Comments
 (0)
0