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 4a51dc9 commit ee4dda5
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 @@ -1242,7 +1242,7 @@ def document_expires_shape(section, event_name, **kwargs):

def _handle_200_error(operation_model, response_dict, **kwargs):
# S3 can return a 200 response with an error embedded in the body.
# Convert the 200 to a 500 for retry resolution in ``_retry_200_error``.
# Convert the 200 to a 500 for retry resolution in ``_update_status_code``.
if not response_dict or operation_model.has_streaming_output:
# Operations with streaming response blobs are excluded as they
# can't be reliably distinguished from an S3 error.
Expand Down

0 comments on commit ee4dda5

Please sign in to comment.