Skip to content

Commit e6d9926

Browse files
authored
Update build_platform.py - Allow error 429 on wget UF2 tools
1 parent c2e01cc commit e6d9926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def glob1(pattern):
251251
def download_uf2_utils():
252252
"""Downloads uf2conv tools if we don't already have them
253253
"""
254-
cmd = "wget -nc --no-check-certificate http://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2families.json https://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2conv.py"
254+
cmd = "wget --retry-on-http-error=429,503 -nc --no-check-certificate http://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2families.json https://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2conv.py"
255255
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
256256
r = proc.wait(timeout=60)
257257
out = proc.stdout.read()

0 commit comments

Comments
 (0)