Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix llm err handling (#5958)

Robert Brennan50a0b1d91dd0
diff --git a/openhands/controller/agent_controller.py b/openhands/controller/agent_controller.py
index 569d37a9be..d4fd9178b3 100644
--- a/openhands/controller/agent_controller.py
+++ b/openhands/controller/agent_controller.py
@@ -208,7 +208,7 @@ class AgentController:
reported = RuntimeError(
'There was an unexpected error while running the agent.'
)
- if isinstance(e, litellm.LLMError):
+ if isinstance(e, litellm.AuthenticationError):
reported = e
await self._react_to_exception(reported)