Skip to content

Commit

Permalink
fix(cli): str assigned to anyTypeUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulPHPE committed Feb 13, 2024
1 parent f71ae10 commit d93a4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bases/ecoindex/cli/arguments_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_url_from_args(urls_arg: list[AnyHttpUrl]) -> set[AnyHttpUrl]:
parsed_url = urlparse(str(url))
if (parsed_url.hostname == "localhost"):
replaced_netloc = parsed_url.netloc.replace('localhost', 'host.docker.internal')
url = urlunparse((parsed_url.scheme, replaced_netloc, parsed_url.path, parsed_url.params, parsed_url.query, parsed_url.fragment))
url = AnyHttpUrl(urlunparse((parsed_url.scheme, replaced_netloc, parsed_url.path, parsed_url.params, parsed_url.query, parsed_url.fragment)))
urls_from_args.add(url)

return urls_from_args
Expand Down

0 comments on commit d93a4c3

Please sign in to comment.