(self, resp, **kwargs)
Response callback to warn about incorrect credentials.
Response callback to warn about incorrect credentials.
Response callback to warn about incorrect credentials .
def warn_on_401(self, resp, **kwargs):
        """Response callback to warn about incorrect credentials."""
        if resp.status_code == 401:
            logger.warning('401 Error, Credentials not correct for %s',
                           resp.request.url)
def warn_on_401 ( self , resp , * * kwargs ) : if resp . status_code == 401 : logger . warning ( '401 Error, Credentials not correct for %s' , resp . request . url )