Skip to content

Commit 2154ff1

Browse files
VascoSch92claude
andcommitted
fix: correct indentation in except block for concise validation errors
The previous commit introduced broken indentation in the except block, causing a SyntaxError (unmatched ')') that broke all CI checks. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent be1465f commit 2154ff1

File tree

1 file changed

+5
-6
lines changed
  • openhands-sdk/openhands/sdk/agent

1 file changed

+5
-6
lines changed

openhands-sdk/openhands/sdk/agent/agent.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -877,12 +877,11 @@ def _get_action_event(
877877
action: Action = tool.action_from_arguments(arguments)
878878
except (json.JSONDecodeError, ValidationError, ValueError) as e:
879879
# Build concise error message with parameter names only (not values)
880-
keys = list(parsed_args.keys()) if isinstance(parsed_args, dict) else None
881-
params = (
882-
f"Parameters provided: {keys}"
883-
if keys is not None
884-
else "Arguments: unparseable JSON"
885-
)
880+
keys = list(parsed_args.keys()) if isinstance(parsed_args, dict) else None
881+
params = (
882+
f"Parameters provided: {keys}"
883+
if keys is not None
884+
else "Arguments: unparseable JSON"
886885
)
887886
err = f"Error validating tool '{tool.name}': {e}. {params}"
888887
# Persist assistant function_call so next turn has matching call_id

0 commit comments

Comments
 (0)