mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
fix: Properly handle AgentRuntimeTimeoutError in runtime base (#9923)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -351,14 +351,14 @@ class Runtime(FileEditRuntimeMixin):
|
||||
error_message = f'{type(e).__name__}: {str(e)}'
|
||||
self.log('error', f'Unexpected error while running action: {error_message}')
|
||||
self.log('error', f'Problematic action: {str(event)}')
|
||||
self.set_runtime_status(runtime_status, error_message)
|
||||
self.set_runtime_status(runtime_status, error_message, level='error')
|
||||
return
|
||||
except Exception as e:
|
||||
runtime_status = RuntimeStatus.ERROR
|
||||
error_message = f'{type(e).__name__}: {str(e)}'
|
||||
self.log('error', f'Unexpected error while running action: {error_message}')
|
||||
self.log('error', f'Problematic action: {str(event)}')
|
||||
self.set_runtime_status(runtime_status, error_message)
|
||||
self.set_runtime_status(runtime_status, error_message, level='error')
|
||||
return
|
||||
|
||||
observation._cause = event.id # type: ignore[attr-defined]
|
||||
|
||||
Reference in New Issue
Block a user