Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix setup.sh error logging (#8678)

Graham Neubig77cd05c33b1e
diff --git a/openhands/runtime/base.py b/openhands/runtime/base.py
index e0379e1bf1..92a3a707a8 100644
--- a/openhands/runtime/base.py
+++ b/openhands/runtime/base.py
@@ -431,7 +431,7 @@ class Runtime(FileEditRuntimeMixin):
)
action.set_hard_timeout(600)
obs = self.run_action(action)
- if isinstance(obs, CmdOutputObservation) and obs.exit_code != 0:
+ if not isinstance(obs, CmdOutputObservation) or obs.exit_code != 0:
self.log('error', f'Setup script failed: {obs.content}')
@property