Skip to content

Commit

Permalink
Try to workaround HTTP error in make_release.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr authored Jun 10, 2024
1 parent dc4f1dd commit 6638f67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import re
import subprocess
import tempfile
import time
import zipfile

from packaging.version import Version, InvalidVersion
Expand Down Expand Up @@ -502,7 +503,10 @@ def bump_version_in_main(new_version):
"sha": file_info["sha"],
"branch": "main",
}
logging.info(f"Bumping version with: {data}")
logging.info(f"Bumping version of {file_info['url']} with: {data}")
# At some point the following PUT started failing with 409 Conflict
# Let's try adding a sleep to see if that avoids the issue
time.sleep(30)
r = requests.put(
file_info["url"],
json=data,
Expand Down

0 comments on commit 6638f67

Please sign in to comment.