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 3e2cd24 commit 18c80d2Copy full SHA for 18c80d2
.actions/assistant.py
@@ -450,7 +450,10 @@ def pull_docs_files(
450
451
with tempfile.TemporaryDirectory() as tmp:
452
zip_file = os.path.join(tmp, "repo.zip")
453
- urllib.request.urlretrieve(zip_url, zip_file)
+ try:
454
+ urllib.request.urlretrieve(zip_url, zip_file)
455
+ except urllib.error.HTTPError:
456
+ raise urllib.error.HTTPError(f"Requesting file '{zip_url}' does not exist or it is just unavailable.")
457
458
with zipfile.ZipFile(zip_file, "r") as zip_ref:
459
zip_ref.extractall(tmp)
0 commit comments