Skip to content

Commit

Permalink
Removed raise for status, because it will prevent catching 404s for H…
Browse files Browse the repository at this point in the history
…EAD requests
  • Loading branch information
Thijsvandepoll committed Aug 6, 2024
1 parent b434f18 commit 3545557
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion elastic_transport/_node/_http_httpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ async def perform_request( # type: ignore[override]
headers=dict(resolved_headers),
timeout=request_timeout,
)
resp.raise_for_status()
response_body = resp.read()
duration = time.perf_counter() - start
except RERAISE_EXCEPTIONS + BUILTIN_EXCEPTIONS:
Expand Down

0 comments on commit 3545557

Please sign in to comment.