Skip to content

Commit 577375f

Browse files
Removed raise for status, because it will prevent catching 404s for HEAD requests (#182)
1 parent b434f18 commit 577375f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

elastic_transport/_node/_http_httpx.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ async def perform_request( # type: ignore[override]
146146
headers=dict(resolved_headers),
147147
timeout=request_timeout,
148148
)
149-
resp.raise_for_status()
150149
response_body = resp.read()
151150
duration = time.perf_counter() - start
152151
except RERAISE_EXCEPTIONS + BUILTIN_EXCEPTIONS:

0 commit comments

Comments
 (0)