Beispiel #1
0
    def check_if_id_is_character(character_id):
        try:
            api = evelink.api.API()
            eve = evelink.eve.EVE(api=api)
            results = eve.character_info_from_id(character_id)
            if results:
                return True
        except evelink.api.APIError as error:
            return False

        return False
    def check_if_id_is_character(character_id):
        try:
            api = evelink.api.API()
            eve = evelink.eve.EVE(api=api)
            results = eve.character_info_from_id(character_id)
            if results:
                return True
        except evelink.api.APIError as error:
            return False

        return False
Beispiel #3
0
    def check_if_id_is_character(character_id):
        logger.debug("Checking if id %s is a character." % character_id)
        try:
            api = evelink.api.API()
            eve = evelink.eve.EVE(api=api)
            results = eve.character_info_from_id(character_id)
            if results:
                logger.debug("Confirmed id %s is a character." % character_id)
                return True
        except evelink.api.APIError as error:
            logger.debug("APIError occured while checking if id %s is a character. Possibly not character?" % character_id, exc_info=True)

        logger.debug("Unable to verify id %s is a character." % character_id)
        return False
Beispiel #4
0
    def check_if_id_is_character(character_id):
        logger.debug("Checking if id %s is a character." % character_id)
        try:
            api = evelink.api.API()
            eve = evelink.eve.EVE(api=api)
            results = eve.character_info_from_id(character_id)
            if results:
                logger.debug("Confirmed id %s is a character." % character_id)
                return True
        except evelink.api.APIError:
            logger.debug(
                "APIError occured while checking if id %s is a character. Possibly not character?" % character_id,
                exc_info=True)

        logger.debug("Unable to verify id %s is a character." % character_id)
        return False
Beispiel #5
0
 def apicall_eve_CharacterInfo(self, char_id: int) -> dict:
     eve = evelink.eve.EVE(self._api)
     api_result = eve.character_info_from_id(char_id)
     return api_result.result