Skip to content

Commit

Permalink
Update botocore/handlers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Prewitt <nate.prewitt@gmail.com>
  • Loading branch information
alexgromero and nateprewitt authored Oct 18, 2024
1 parent 9594dca commit 017bacf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botocore/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ def _update_status_code(response, **kwargs):
return
http_response, parsed = response
parsed_status_code = parsed.get('ResponseMetadata', {}).get(
'HTTPStatusCode'
'HTTPStatusCode', http_response.status_code
)
if http_response.status_code != parsed_status_code:
http_response.status_code = parsed_status_code
Expand Down

0 comments on commit 017bacf

Please sign in to comment.