Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Remove leaked exception (#6086)

Robert Brennane3a96097bac8
diff --git a/openhands/controller/agent_controller.py b/openhands/controller/agent_controller.py
index f94b95bb84..f218716acd 100644
--- a/openhands/controller/agent_controller.py
+++ b/openhands/controller/agent_controller.py
@@ -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