Commit 0fa758e
Unify status-check sites behind a small _raise_if_not_ok helper
Both pagination loops now had four call sites repeating
``if resp.status_code != 200: raise RuntimeError(_error_body(resp))``.
Move that into a one-line helper alongside ``_error_body`` and call
it from every site.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0ad568c commit 0fa758e
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
342 | 348 | | |
343 | 349 | | |
344 | 350 | | |
| |||
583 | 589 | | |
584 | 590 | | |
585 | 591 | | |
586 | | - | |
587 | | - | |
| 592 | + | |
588 | 593 | | |
589 | 594 | | |
590 | 595 | | |
| |||
606 | 611 | | |
607 | 612 | | |
608 | 613 | | |
609 | | - | |
610 | | - | |
| 614 | + | |
611 | 615 | | |
612 | 616 | | |
613 | 617 | | |
| |||
1045 | 1049 | | |
1046 | 1050 | | |
1047 | 1051 | | |
1048 | | - | |
1049 | | - | |
| 1052 | + | |
1050 | 1053 | | |
1051 | 1054 | | |
1052 | 1055 | | |
| |||
1072 | 1075 | | |
1073 | 1076 | | |
1074 | 1077 | | |
1075 | | - | |
1076 | | - | |
| 1078 | + | |
1077 | 1079 | | |
1078 | 1080 | | |
1079 | 1081 | | |
| |||
0 commit comments