diff options
author | Andrew Godwin | 2022-11-20 18:50:45 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-20 18:50:45 -0700 |
commit | 0b5a3e5323c7b8a8c6c9ff8160c66bd9e0c51b1c (patch) | |
tree | fac6a905dff551669e3b6931e90bfd323c731660 | |
parent | 5de3a7ad67f1a34fc140e8b6d24777932c0f5917 (diff) | |
download | takahe-0b5a3e5323c7b8a8c6c9ff8160c66bd9e0c51b1c.tar.gz takahe-0b5a3e5323c7b8a8c6c9ff8160c66bd9e0c51b1c.tar.bz2 takahe-0b5a3e5323c7b8a8c6c9ff8160c66bd9e0c51b1c.zip |
Don't catch GET errors
-rw-r--r-- | core/signatures.py | 4 |
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 |