def log_error(self, e):
        """
        Print errors. Stop travis-ci from leaking api keys

        :param e: The error
        :return: None
        """

        if not environ.get('CI'):
            self.log_function(e)
            if hasattr(e, 'response') and hasattr(e.response, 'text'):
                self.log_function(e.response.text)
def log_error(self, e):
        """
        Print errors. Stop travis-ci from leaking api keys

        :param e: The error
        :return: None
        """

        if not environ.get('CI'):
            self.log_function(e)
            if hasattr(e, 'response') and hasattr(e.response, 'text'):
                self.log_function(e.response.text)
def log_error ( self , e ) : if not environ . get ( 'CI' ) : self . log_function ( e ) if hasattr ( e , 'response' ) and hasattr ( e . response , 'text' ) : self . log_function ( e . response . text )
Print errors. Stop travis-ci from leaking api keys

        :param e: The error
        :return: None
Print errors . Stop travis - ci from leaking api keys : param e : The error : return : None