From b72526281be6bbe67108ca44b7a61c52045a83bd Mon Sep 17 00:00:00 2001 From: Alessandra Romero Date: Wed, 23 Oct 2024 11:15:40 -0400 Subject: [PATCH] Revert "Fix event stream regression (#3285)" This reverts commit 33fd15d8a68e5a97d4b4ee0408b18de64f141e73. --- botocore/handlers.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/botocore/handlers.py b/botocore/handlers.py index 6c68473d4e..9a7f78acef 100644 --- a/botocore/handlers.py +++ b/botocore/handlers.py @@ -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