pagarmeapisdk/http/requests_client.py
def force_retries(self, request, to_retry=None):
        """Reset retries according to each request

        Args:
            request (HttpRequest): The given HttpRequest to execute.
            to_retry (boolean): whether to retry on a particular request

        """
        adapters = self.session.adapters
        if to_retry is False:
            for adapter in adapters.values():
                adapter.max_retries = False
        elif to_retry is True:
            for adapter in adapters.values():
                adapter.max_retries.allowed_methods = [request.http_method]
Reset retries according to each request

        Args:
            request (HttpRequest): The given HttpRequest to execute.
            to_retry (boolean): whether to retry on a particular request

        
Reset retries according to each request
Reset retries according to each request
def force_retries(self, request, to_retry=None):
        adapters = self.session.adapters
        if to_retry is False:
            for adapter in adapters.values():
                adapter.max_retries = False
        elif to_retry is True:
            for adapter in adapters.values():
                adapter.max_retries.allowed_methods = [request.http_method]
def force_retries ( self , request , to_retry = None ) : adapters = self . session . adapters if to_retry is False : for adapter in adapters . values ( ) : adapter . max_retries = False elif to_retry is True : for adapter in adapters . values ( ) : adapter . max_retries . allowed_methods = [ request . http_method ]
Reset retries according to each request
Reset retries according to each request
"""Reset retries according to each request

        Args:
            request (HttpRequest): The given HttpRequest to execute.
            to_retry (boolean): whether to retry on a particular request

        """
self
request
The given HttpRequest to execute.
The given HttpRequest to execute .
to_retry
whether to retry on a particular request
whether to retry on a particular request