Skip to content

Commit

Permalink
cli_launcher: Add encoding in quiet_run
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrosenthal committed Feb 12, 2024
1 parent f8c6411 commit 934bfe8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ def quiet_run(argv) -> None:
"""Run a command, staying quiet unless there's an error."""
try:
subprocess.run(
argv, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
argv,
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
encoding="utf-8",
)
except subprocess.CalledProcessError as e:
print(f"Command failed ({argv})!", file=sys.stderr)
Expand Down

0 comments on commit 934bfe8

Please sign in to comment.