Skip to content

Commit

Permalink
Await with warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Sep 25, 2024
1 parent 3eff8c5 commit f954405
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opensearchpy/connection/http_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ async def perform_request(

# raise warnings if any from the 'Warnings' header.
warning_headers = response.headers.getall("warning", ())
print(warning_headers)
self._raise_warnings(warning_headers)

# raise errors based on http status codes, let the client handle those if needed
Expand Down

0 comments on commit f954405

Please sign in to comment.