Commit c44742e
committed
fix: move parse_tool_call_arguments inside try block
Move the parse_tool_call_arguments() call inside the try block so that
JSONDecodeError is caught properly. Previously, unparseable JSON would
cause the agent to crash instead of emitting a helpful AgentErrorEvent.
Co-authored-by: openhands <openhands@all-hands.dev>1 parent 909d6b9 commit c44742e
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
| 858 | + | |
862 | 859 | | |
863 | 860 | | |
864 | 861 | | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
| |||
0 commit comments