From 108afaf6ce25b54689906249328fc6b37c4c160e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 16 Dec 2022 20:14:02 -0700 Subject: We don't care about 404 errors quite as much --- core/signatures.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core') 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}" ) -- cgit v1.2.3