mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Remove leaked exception (#6086)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
parent
6a41a3cb4f
commit
e3a96097ba
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user