Skip to content

Commit 6638f67

Browse files
authored
Try to workaround HTTP error in make_release.py
1 parent dc4f1dd commit 6638f67

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/make_release.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import re
99
import subprocess
1010
import tempfile
11+
import time
1112
import zipfile
1213

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

0 commit comments

Comments
 (0)