Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix(runtime): replace codec error in pexcept (#4493)

Xingyao Wang263798584e16
diff --git a/openhands/runtime/client/client.py b/openhands/runtime/client/client.py
index 7bfd7e21e2..0afbca1830 100644
--- a/openhands/runtime/client/client.py
+++ b/openhands/runtime/client/client.py
@@ -229,6 +229,7 @@ class RuntimeClient:
self.shell = pexpect.spawn(
f'su {username}',
encoding='utf-8',
+ codec_errors='replace',
echo=False,
)
self.__bash_PS1 = (