[Misc] Replace urllib's urlparse with urllib3's parse_url (#32746)
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
@@ -439,9 +439,9 @@ def get_vllm_port() -> int | None:
|
||||
try:
|
||||
return int(port)
|
||||
except ValueError as err:
|
||||
from urllib.parse import urlparse
|
||||
from urllib3.util import parse_url
|
||||
|
||||
parsed = urlparse(port)
|
||||
parsed = parse_url(port)
|
||||
if parsed.scheme:
|
||||
raise ValueError(
|
||||
f"VLLM_PORT '{port}' appears to be a URI. "
|
||||
|
||||
Reference in New Issue
Block a user