We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49f2bb7 commit 13896a4Copy full SHA for 13896a4
seed_intersphinx_mapping/core.py
@@ -82,7 +82,7 @@ def get_sphinx_doc_url(pypi_name: str) -> str:
82
# Follow redirects to get actual URL
83
r = requests.head(list(docs_dict.values())[0], allow_redirects=True, timeout=10)
84
if r.status_code != 200: # pragma: no cover
85
- raise ValueError("Documentation URL not found.")
+ raise ValueError(f"Documentation URL not found: HTTP Status {r.status_code}.")
86
87
docs_url = r.url
88
@@ -93,7 +93,7 @@ def get_sphinx_doc_url(pypi_name: str) -> str:
93
94
r = requests.head(objects_inv_url)
95
if r.status_code != 200:
96
- raise ValueError("objects.inv not found at url.")
+ raise ValueError(f"objects.inv not found at url: HTTP Status {r.status_code}.")
97
98
return docs_url
99
0 commit comments