Skip to content

Commit

Permalink
Revert "Fix event stream regression (boto#3285)"
Browse files Browse the repository at this point in the history
This reverts commit 33fd15d.
  • Loading branch information
alexgromero committed Oct 23, 2024
1 parent bab77d8 commit b725262
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions botocore/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1245,11 +1245,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 ``_update_status_code``.
if (
not response_dict
or operation_model.has_streaming_output
or operation_model.has_event_stream_output
):
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.
return
Expand Down

0 comments on commit b725262

Please sign in to comment.