We don't care about 404 errors quite as much

This commit is contained in:
Andrew Godwin 2022-12-16 20:14:02 -07:00
parent 727b357744
commit 108afaf6ce
1 changed files with 5 additions and 1 deletions

View File

@ -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}"
)