summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-20 18:50:45 -0700
committerAndrew Godwin2022-11-20 18:50:45 -0700
commit0b5a3e5323c7b8a8c6c9ff8160c66bd9e0c51b1c (patch)
treefac6a905dff551669e3b6931e90bfd323c731660 /core
parent5de3a7ad67f1a34fc140e8b6d24777932c0f5917 (diff)
downloadtakahe-0b5a3e5323c7b8a8c6c9ff8160c66bd9e0c51b1c.tar.gz
takahe-0b5a3e5323c7b8a8c6c9ff8160c66bd9e0c51b1c.tar.bz2
takahe-0b5a3e5323c7b8a8c6c9ff8160c66bd9e0c51b1c.zip
Don't catch GET errors
Diffstat (limited to 'core')
-rw-r--r--core/signatures.py4
1 files changed, 2 insertions, 2 deletions
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