Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(catalog): remove an extra / added in the URLs. #4

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/auto_intersphinx/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def docurls_from_environment(package: str) -> dict[str, str]:
headers={"Accept-Encoding": ""}, # Fixes issue on some links
)
addr = _ensure_webdir(redirected.url)
if requests.head(addr + "/objects.inv").ok:
if requests.head(addr + "objects.inv").ok:
try:
return {md["version"]: addr}
except KeyError:
Expand Down Expand Up @@ -208,7 +208,7 @@ def docurls_from_pypi(package: str, max_entries: int) -> dict[str, str]:
headers={"Accept-Encoding": ""}, # Fixes issue on some links
)
addr = _ensure_webdir(redirected.url)
if requests.head(addr + "/objects.inv").ok:
if requests.head(addr + "objects.inv").ok:
versions[data["info"]["version"]] = addr

# download further versions, if requested by user
Expand All @@ -231,7 +231,7 @@ def docurls_from_pypi(package: str, max_entries: int) -> dict[str, str]:
addr = urls.get("Documentation") or urls.get("documentation")
if addr is not None:
addr = _ensure_webdir(addr)
if requests.head(addr + "/objects.inv").ok:
if requests.head(addr + "objects.inv").ok:
versions[data["info"]["version"]] = addr

return versions
Expand Down
Loading