plutopluto

git clone https://git.ce9e.org/plutopluto.git

commit
0c8f3152f11da3d8dad8f2e3377c8a6049b08c32
parent
b51c855c667136eeb15ded21dd0fd44bdddcbc2b
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-12-21 12:14
forward 403 errors

Diffstat

M plutopluto/__init__.py 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/plutopluto/__init__.py b/plutopluto/__init__.py

@@ -28,7 +28,9 @@ async def fetch(url, *, raw=False, **kwargs):
   28    28         async with session.get(url, **kwargs) as response:
   29    29             if response.status == 404:
   30    30                 raise web.HTTPNotFound
   31    -1             if response.status == 429:
   -1    31             elif response.status == 403:
   -1    32                 raise web.HTTPForbidden
   -1    33             elif response.status == 429:
   32    34                 raise web.HTTPServiceUnavailable
   33    35             response.raise_for_status()
   34    36             if raw: