mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-27 15:40:29 +00:00
We don't care about 404 errors quite as much
This commit is contained in:
parent
727b357744
commit
108afaf6ce
1 changed files with 5 additions and 1 deletions
|
@ -234,7 +234,11 @@ class HttpSignature:
|
|||
content=body_bytes,
|
||||
follow_redirects=method == "get",
|
||||
)
|
||||
if method == "post" and response.status_code >= 400:
|
||||
if (
|
||||
method == "post"
|
||||
and response.status_code >= 400
|
||||
and response.status_code != 404
|
||||
):
|
||||
raise ValueError(
|
||||
f"POST error: {response.status_code} {response.content}"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue