perceval/backends/core/launchpad.py
def user(self, user_name):
        """Get the user data by URL"""

        user = None

        if user_name in self._users:
            return self._users[user_name]

        url_user = self.__get_url("~" + user_name)

        logger.info("Getting info for %s" % (url_user))

        try:
            raw_user = self.__send_request(url_user)
            user = raw_user
        except requests.exceptions.HTTPError as e:
            if e.response.status_code in [404, 410]:
                logger.warning("Data is not available - %s", url_user)
                user = '{}'
            else:
                raise e

        self._users[user_name] = user

        return user
def user(self, user_name):
        user = None

        if user_name in self._users:
            return self._users[user_name]

        url_user = self.__get_url("~" + user_name)

        logger.info("Getting info for %s" % (url_user))

        try:
            raw_user = self.__send_request(url_user)
            user = raw_user
        except requests.exceptions.HTTPError as e:
            if e.response.status_code in [404, 410]:
                logger.warning("Data is not available - %s", url_user)
                user = '{}'
            else:
                raise e

        self._users[user_name] = user

        return user
def user ( self , user_name ) : user = None if user_name in self . _users : return self . _users [ user_name ] url_user = self . __get_url ( "~" + user_name ) logger . info ( "Getting info for %s" % ( url_user ) ) try : raw_user = self . __send_request ( url_user ) user = raw_user except requests . exceptions . HTTPError as e : if e . response . status_code in [ 404 , 410 ] : logger . warning ( "Data is not available - %s" , url_user ) user = '{}' else : raise e self . _users [ user_name ] = user return user
Get the user data by URL
Get the user data by URL