summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-16 20:14:02 -0700
committerAndrew Godwin2022-12-16 20:14:02 -0700
commit108afaf6ce25b54689906249328fc6b37c4c160e (patch)
treeb50600485bef3ef7e46d4034f179955f94835256
parent727b357744ac75707beb2e2ebfca6aa62ad3fd3d (diff)
downloadtakahe-108afaf6ce25b54689906249328fc6b37c4c160e.tar.gz
takahe-108afaf6ce25b54689906249328fc6b37c4c160e.tar.bz2
takahe-108afaf6ce25b54689906249328fc6b37c4c160e.zip
We don't care about 404 errors quite as much
-rw-r--r--core/signatures.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/signatures.py b/core/signatures.py
index 45e6ff4..c589be4 100644
--- a/core/signatures.py
+++ b/core/signatures.py
@@ -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}"
)