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 53e161c commit 0364d00Copy full SHA for 0364d00
check_versions.py
@@ -77,7 +77,10 @@ def search_sphinx_versions_in_cpython(repo: git.Repo):
77
78
async def get_version_in_prod(language, version):
79
url = f"https://docs.python.org/{language}/{version}".replace("/en/", "/")
80
- response = await httpx.get(url, timeout=5)
+ try:
81
+ response = await httpx.get(url, timeout=5)
82
+ except httpx.exceptions.TimeoutException:
83
+ return "TIMED OUT"
84
text = response.text.encode("ASCII", errors="ignore").decode("ASCII")
85
if created_using := re.search(
86
r"sphinx.pocoo.org.*?([0-9.]+[0-9])", text, flags=re.M
0 commit comments