Skip to content

Commit 4372561

Browse files
committed
Skip if no version match
1 parent 23d402a commit 4372561

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/update_multitool_binaries.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ def run(lockfile_path):
2828
data = json.load(f)
2929

3030
for tool in [tool for tool in data if tool != "$schema"]:
31-
version = re.search(f"download/(.*?)/{tool}", data[tool]["binaries"][0]["url"])[1]
31+
match = re.search(f"download/(.*?)/{tool}", data[tool]["binaries"][0]["url"])
32+
if match:
33+
version = match[1]
34+
else:
35+
continue
3236
match = re.search("github.com/(.*?)/releases", data[tool]["binaries"][0]["url"])
3337
if match:
3438
releases_url = f"https://api.github.com/repos/{match[1]}/releases/latest"

0 commit comments

Comments
 (0)