Skip to content

Commit 3204fca

Browse files
Update tools/install_deps.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Hunter Hansen <50837800+hhansen-bdai@users.noreply.github.com>
1 parent a63c424 commit 3204fca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/install_deps.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ def run_and_print(args: list[str]):
156156
while p.poll() is None:
157157
text = p.stdout.read1().decode("utf-8")
158158
print(text, end="", flush=True)
159-
if p.poll() != 0:
160-
raise RuntimeError(f'Subprocess with args: "{args}" failed. The returned error code was: {p.poll()}')
159+
return_code = p.poll()
160+
if return_code != 0:
161+
raise RuntimeError(f'Subprocess with args: "{args}" failed. The returned error code was: {return_code}')
161162

162163

163164
def main():

0 commit comments

Comments
 (0)