Skip to content

Commit

Permalink
Revert "(fix) Update logs after run_action (EventStreamRuntime) (#3870)"
Browse files Browse the repository at this point in the history
This reverts commit ecf4aed.
  • Loading branch information
enyst committed Sep 15, 2024
1 parent dd2af03 commit db398be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openhands/runtime/client/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ def run_action(self, action: Action) -> Observation:
output = response.json()
obs = observation_from_dict(output)
obs._cause = action.id # type: ignore[attr-defined]
return obs
else:
error_message = response.text
logger.error(f'Error from server: {error_message}')
Expand All @@ -436,8 +437,6 @@ def run_action(self, action: Action) -> Observation:
except Exception as e:
logger.error(f'Error during command execution: {e}')
obs = ErrorObservation(f'Command execution failed: {str(e)}')
# Refresh docker logs
self._wait_until_alive()
return obs

def run(self, action: CmdRunAction) -> Observation:
Expand Down

0 comments on commit db398be

Please sign in to comment.