Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
congminh1254 committed Jul 31, 2023
1 parent ec11185 commit f763b0d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions boxsdk/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,6 @@ def _get_retry_request_callable(
)
code = network_response.status_code

if request.method == 'GET' and network_response.ok and not self._is_json_response_if_expected(network_response, request):
return partial(
self._network_layer.retry_after,
self.get_retry_after_time(attempt_number, None),
self._send_request,
)

if (code in (202, 429) or code >= 500) and code not in skip_retry_codes and not self._is_server_auth_type(kwargs):
return partial(
self._network_layer.retry_after,
Expand Down

0 comments on commit f763b0d

Please sign in to comment.