Skip to content

Commit

Permalink
Remove walrus operator in case we have previous Python 3.8 for verifi…
Browse files Browse the repository at this point in the history
…cations

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
  • Loading branch information
raulcd and kou committed Jan 3, 2024
1 parent ce7067a commit e344c67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/release/download_rc_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def _download_url(self, url, dest_path, *, extra_args=None):
# Retry subprocess in case it fails with OpenSSL Connection errors
# https://issues.apache.org/jira/browse/INFRA-25274
for attempt in range(5):
if delay := attempt * 3:
if attempt > 0:
delay = attempt * 3:
print(f"Waiting {delay} seconds before retrying {url}")
time.sleep(delay)
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
Expand Down

0 comments on commit e344c67

Please sign in to comment.