Skip to content

Commit

Permalink
_make_api_call: remove dead code (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonst authored Sep 18, 2023
1 parent 9e17fd4 commit d74a88b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pynamodb/connection/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,7 @@ def _make_api_call(self, operation_name: str, operation_kwargs: Dict, settings:
is_last_attempt_for_exceptions = i == self._max_retry_attempts_exception

http_response = None
prepared_request = None
try:
if prepared_request is not None:
# If there is a stream associated with the request, we need
# to reset it before attempting to send the request again.
# This will ensure that we resend the entire contents of the
# body.
prepared_request.reset_stream()

# Create a new request for each retry (including a new signature).
prepared_request = self._create_prepared_request(request_dict, settings)

Expand Down

0 comments on commit d74a88b

Please sign in to comment.