- commit
- dd00f1ea184613a2bbb6de2148eedae7f8c068d9
- parent
- 969d40d47b5e30659e643aca333a3180e39c9ffa
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-10-20 08:43
respond with 503 Servic Unavailable on reddit rate limiting
Diffstat
M | neddit.py | 2 | ++ |
1 files changed, 2 insertions, 0 deletions
diff --git a/neddit.py b/neddit.py
@@ -81,6 +81,8 @@ async def fetch(url, **params): 81 81 ) as response: 82 82 if response.status == 404: 83 83 raise web.HTTPNotFound -1 84 if response.status == 429: -1 85 raise web.HTTPServiceUnavailable 84 86 response.raise_for_status() 85 87 return await response.json() 86 88