Skip to content

Commit ef3e01d

Browse files
committed
fix distro handling
1 parent 73fc9ab commit ef3e01d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.evergreen/scripts/setup_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ def setup_libmongocrypt():
113113
arch = platform.machine()
114114
with open("/etc/os-release") as fid:
115115
for line in fid.readlines():
116+
line = line.replace('"', "") # noqa: PLW2901
116117
if line.startswith("NAME="):
117118
_, _, name = line.strip().partition("=")
118119
if line.startswith("VERSION_ID="):
119120
_, _, version_id = line.strip().partition("=")
120-
raise ValueError(f"{name=} {version_id}=")
121121
if name.startswith("Debian"):
122122
target = f"debian{version_id}"
123123
elif name.startswith("Red Hat"):

0 commit comments

Comments
 (0)