Skip to content

Commit

Permalink
Fix : minor updates to log messages (#6232)
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr authored Jan 13, 2025
1 parent 5b1dcf8 commit 4fa5c32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions openhands/runtime/builder/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ def build(
# Wait before polling again
sleep_if_should_continue(30)

raise AgentRuntimeBuildError(
'Build interrupted (likely received SIGTERM or SIGINT).'
)
raise AgentRuntimeBuildError('Build interrupted')

def image_exists(self, image_name: str, pull_from_repo: bool = True) -> bool:
"""Checks if an image exists in the remote registry using the /image_exists endpoint."""
Expand Down
4 changes: 2 additions & 2 deletions openhands/server/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ async def initialize_agent(
selected_repository=selected_repository,
)
except Exception as e:
logger.exception(f'Error creating controller: {e}')
logger.exception(f'Error creating agent_session: {e}')
await self.send_error(
f'Error creating controller. Please check Docker is running and visit `{TROUBLESHOOTING_URL}` for more debugging information..'
f'Error creating agent_session. Please check Docker is running and visit `{TROUBLESHOOTING_URL}` for more debugging information..'
)
return

Expand Down

0 comments on commit 4fa5c32

Please sign in to comment.