Commit 34bae58
fix: guard whisper_detail error path against non-JSON and non-dict responses
Align error handling with whisper_status pattern: handle empty body,
non-JSON responses, and pass status_code as separate exception argument.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 14b3961 commit 34bae58
File tree
2 files changed
+11
-3
lines changed- src/unstract/llmwhisperer
- tests/unit
2 files changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
357 | 365 | | |
358 | 366 | | |
359 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments