parameters: (self)
return_statement: return None
docstring: Goes through the credentials chain, returning the first ``Credentials``
          that could be loaded.
docstring_summary: Goes through the credentials chain, returning the first ``Credentials``
          that could be loaded.
docstring_tokens: Goes through the credentials chain returning the first Credentials that could be loaded .
function: def load_credentials(self):
          """
          Goes through the credentials chain, returning the first ``Credentials``
          that could be loaded.
          """
          # First provider to return a non-None response wins.
          for provider in self.providers:
              logger.debug("Looking for credentials via: %s", provider.METHOD)
              creds = provider.load()
              if creds is not None:
                  return creds
  
          # If we got here, no credentials could be found.
          # This feels like it should be an exception, but historically, ``None``
          # is returned.
          #
          # +1
          # -js
          return None
function_tokens: def load_credentials ( self ) : # First provider to return a non-None response wins. for provider in self . providers : logger . debug ( "Looking for credentials via: %s" , provider . METHOD ) creds = provider . load ( ) if creds is not None : return creds # If we got here, no credentials could be found. # This feels like it should be an exception, but historically, ``None`` # is returned. # # +1 # -js return None