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 17, 2024
1 parent d7dcfa1 commit d21ce1b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions botocore/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,12 +1257,8 @@ def _handle_200_error(operation_model, response_dict, **kwargs):


def _retry_200_error(response, **kwargs):
# Adjusts the HTTP status code for responses that may contain errors
# embedded in a 200 OK response body. The _handle_200_error function
# modifies the parsed response status code to 500 if it detects an error.
# This function checks if the HTTP status code differs from the parsed
# status code and updates the HTTP response accordingly, ensuring
# correct handling for retries.
# Update the http_response status code when the parsed response has been
# modified in a handler. This enables retries for cases like ``_handle_200_error``.
if response is None:
return
http_response, parsed = response
Expand Down

0 comments on commit d21ce1b

Please sign in to comment.