Skip to content

Commit 289664c

Browse files
committed
Fix checksum fetching when we have prerelease
See e447ec0
1 parent d6a879b commit 289664c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solc_select/repositories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def get_checksums(self, version: SolcVersion) -> Tuple[str, Optional[str]]:
9595
builds = list_data["builds"]
9696

9797
version_str = str(version)
98-
matches = [b for b in builds if b["version"] == version_str]
98+
matches = [b for b in builds if b["version"] == version_str and "prerelease" not in b]
9999

100100
if not matches or not matches[0]["sha256"]:
101101
raise ValueError(f"Unable to retrieve checksum for {version}")

0 commit comments

Comments
 (0)