Skip to content

Commit d74a88b

Browse files
authored
_make_api_call: remove dead code (#1196)
1 parent 9e17fd4 commit d74a88b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pynamodb/connection/base.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -401,15 +401,7 @@ def _make_api_call(self, operation_name: str, operation_kwargs: Dict, settings:
401401
is_last_attempt_for_exceptions = i == self._max_retry_attempts_exception
402402

403403
http_response = None
404-
prepared_request = None
405404
try:
406-
if prepared_request is not None:
407-
# If there is a stream associated with the request, we need
408-
# to reset it before attempting to send the request again.
409-
# This will ensure that we resend the entire contents of the
410-
# body.
411-
prepared_request.reset_stream()
412-
413405
# Create a new request for each retry (including a new signature).
414406
prepared_request = self._create_prepared_request(request_dict, settings)
415407

0 commit comments

Comments
 (0)