Skip to content

Commit 587a0ab

Browse files
authored
Fix (maybe): Decoding errors (#160)
Closes #157
1 parent 8bf9aaf commit 587a0ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/swerex/runtime/local.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ async def start(self) -> CreateBashSessionResponse:
157157
self._shell = pexpect.spawn(
158158
"/bin/bash",
159159
encoding="utf-8",
160+
codec_errors="backslashreplace",
160161
echo=False,
161162
env={"PS1": self._ps1, "PS2": "", "PS0": ""}, # type: ignore
162163
)

0 commit comments

Comments
 (0)