From 0b5a3e5323c7b8a8c6c9ff8160c66bd9e0c51b1c Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 20 Nov 2022 18:50:45 -0700 Subject: Don't catch GET errors --- core/signatures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/signatures.py b/core/signatures.py index edfc70e..e2582c5 100644 --- a/core/signatures.py +++ b/core/signatures.py @@ -227,9 +227,9 @@ class HttpSignature: content=body_bytes, follow_redirects=method == "get", ) - if response.status_code >= 400: + if method == "post" and response.status_code >= 400: raise ValueError( - f"Request error: {response.status_code} {response.content}" + f"POST error: {response.status_code} {response.content}" ) return response -- cgit v1.2.3