Skip to content

Commit

Permalink
fix llm err handling (#5958)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren authored Jan 1, 2025
1 parent 3d4d66a commit 50a0b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openhands/controller/agent_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async def _step_with_exception_handling(self):
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)

Expand Down

0 comments on commit 50a0b1d

Please sign in to comment.