Remove leaked exception (#6086)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Robert Brennan
2025-01-07 11:15:47 -05:00
committed by GitHub
parent 6a41a3cb4f
commit e3a96097ba

View File

@@ -217,7 +217,7 @@ class AgentController:
reported = RuntimeError(
'There was an unexpected error while running the agent. Please '
f'report this error to the developers. Your session ID is {self.id}. '
f'Exception: {e}.'
f'Error type: {e.__class__.__name__}'
)
if isinstance(e, litellm.AuthenticationError) or isinstance(
e, litellm.BadRequestError