Commit 94293c1
committed
fix: raise RateLimitError when 429 retries are exhausted
RateLimitError was defined and exported but could never be raised.
When all retry attempts are exhausted on a 429 response, _parse_response
now raises RateLimitError instead of a generic StackAuthError. Callers
writing `except RateLimitError` will now correctly catch rate limit
failures.1 parent a6ac188 commit 94293c1
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
0 commit comments