Commit af21cac
committed
fix: handle JSONDecodeError in search, simplify local_search serialization
- Add json.JSONDecodeError to _do_search exception handling so malformed
registry responses return an error dict instead of crashing
- Replace model_dump_json + json.loads with model_dump in _local_search
to avoid unnecessary serialize-then-deserialize roundtrip
- Remove unnecessary `as _` in test patch context managers
- Fix 80-char line limit violation in test docstring1 parent 4231e92 commit af21cac
2 files changed
Lines changed: 6 additions & 8 deletions
File tree
- src/google/adk_community/tools/ardhf
- tests/unittests/tools/ardhf
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 164 | + | |
| 165 | + | |
168 | 166 | | |
169 | 167 | | |
170 | 168 | | |
| |||
285 | 283 | | |
286 | 284 | | |
287 | 285 | | |
288 | | - | |
| 286 | + | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
| 507 | + | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
0 commit comments