Skip to content

Commit

Permalink
Remove print statement and add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Feb 19, 2024
1 parent d7eb516 commit 88ad953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacy/cli/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ def download_model(
# allow relative paths or other shenanigans to trick us into download
# from outside our own repo.
base_url = about.__download_url__
# urljoin requires that the path ends with /, or the last path part will be dropped
if not base_url.endswith("/"):
base_url = about.__download_url__ + "/"
download_url = urljoin(base_url, filename)
print(base_url, filename, download_url)
if not download_url.startswith(about.__download_url__):
raise ValueError(f"Download from {filename} rejected. Was it a relative path?")
pip_args = list(user_pip_args) if user_pip_args is not None else []
Expand Down

0 comments on commit 88ad953

Please sign in to comment.