Commit 58280eb
Retry RescueGroups API requests with backoff
A transient ReadTimeout from api.rescuegroups.org crashed the entire run
(it's the only non-debug source), since main.run() only catches ValueError.
Mount an HTTPAdapter with urllib3 Retry on the request session so transient
timeouts and 5xx/429 responses are retried with exponential backoff before
giving up. POST is opted into allowed_methods (not retried by default), and
raise_on_status=False preserves the existing raise_for_status() error path.
Fixes #116
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent efb4ca1 commit 58280eb
1 file changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
24 | 47 | | |
25 | 48 | | |
26 | 49 | | |
| |||
92 | 115 | | |
93 | 116 | | |
94 | 117 | | |
95 | | - | |
| 118 | + | |
| 119 | + | |
96 | 120 | | |
97 | 121 | | |
98 | 122 | | |
| |||
0 commit comments