Skip to content

Commit

Permalink
run_before_script: Pass backslashreplace for errors in subprocess
Browse files Browse the repository at this point in the history
More resilience for commands across systems. Ability to debug because
escape sequences preserves the byte value for debugging.
  • Loading branch information
tony committed Feb 2, 2025
1 parent c032fe1 commit df963c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tmuxp/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def run_before_script(
stdout=subprocess.PIPE,
cwd=cwd,
text=True,
errors="backslashreplace",
)
if proc.stdout is not None:
for line in iter(proc.stdout.readline, ""):
Expand Down

0 comments on commit df963c9

Please sign in to comment.