mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-23 05:56:29 +00:00
Don't catch GET errors
This commit is contained in:
parent
5de3a7ad67
commit
0b5a3e5323
1 changed files with 2 additions and 2 deletions
|
@ -227,9 +227,9 @@ class HttpSignature:
|
||||||
content=body_bytes,
|
content=body_bytes,
|
||||||
follow_redirects=method == "get",
|
follow_redirects=method == "get",
|
||||||
)
|
)
|
||||||
if response.status_code >= 400:
|
if method == "post" and response.status_code >= 400:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"Request error: {response.status_code} {response.content}"
|
f"POST error: {response.status_code} {response.content}"
|
||||||
)
|
)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue