Commit 231d352
committed
Map malformed 200 body to ProviderInvalidResponse in skeleton
The authoring-guide embed() skeleton parsed the 200 response body without
guarding it, so a malformed body would leak a raw KeyError/ValueError
instead of the ProviderInvalidResponse its own contract checklist
prescribes. Wrap the parse (PR #220 review).1 parent 362f3af commit 231d352
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
0 commit comments