- commit
- 3858b6e9da2e809acd9cc362dba42de78b000bbb
- parent
- 9519d7d99429286ca9a34ddb2dd157f787a1bccf
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-03-13 05:54
handle 429 response
Diffstat
M | dropin.py | 2 | ++ |
1 files changed, 2 insertions, 0 deletions
diff --git a/dropin.py b/dropin.py
@@ -211,6 +211,8 @@ async def fetch(url, *, need_auth=False, **params): 211 211 ) as response: 212 212 if response.status == 404: 213 213 raise web.HTTPNotFound -1 214 if response.status == 429: -1 215 raise web.HTTPServiceUnavailable 214 216 response.raise_for_status() 215 217 return await response.json() 216 218