Skip to content

Commit df963c9

Browse files
committed
run_before_script: Pass backslashreplace for errors in subprocess
More resilience for commands across systems. Ability to debug because escape sequences preserves the byte value for debugging.
1 parent c032fe1 commit df963c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tmuxp/util.py

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def run_before_script(
3636
stdout=subprocess.PIPE,
3737
cwd=cwd,
3838
text=True,
39+
errors="backslashreplace",
3940
)
4041
if proc.stdout is not None:
4142
for line in iter(proc.stdout.readline, ""):

0 commit comments

Comments
 (0)