perceval/backends/core/gitlab.py
def _init_rate_limit(self):
        """Initialize rate limit information"""

        url = urijoin(self.base_url, 'projects', self.owner + '%2F' + self.repository)
        try:
            response = super().fetch(url)
            self.update_rate_limit(response)
        except requests.exceptions.HTTPError as error:
            if error.response.status_code == 401:
                raise error
            else:
                logger.warning("Rate limit not initialized: %s", error)
def _init_rate_limit(self):
        url = urijoin(self.base_url, 'projects', self.owner + '%2F' + self.repository)
        try:
            response = super().fetch(url)
            self.update_rate_limit(response)
        except requests.exceptions.HTTPError as error:
            if error.response.status_code == 401:
                raise error
            else:
                logger.warning("Rate limit not initialized: %s", error)
def _init_rate_limit ( self ) : url = urijoin ( self . base_url , 'projects' , self . owner + '%2F' + self . repository ) try : response = super ( ) . fetch ( url ) self . update_rate_limit ( response ) except requests . exceptions . HTTPError as error : if error . response . status_code == 401 : raise error else : logger . warning ( "Rate limit not initialized: %s" , error )
Initialize rate limit information
Initialize rate limit information