Skip to content

BUG: Calling load_rank / get_rank freezes loop #77

@DJJ05

Description

@DJJ05

Here is my full code:

        try:
            account = await self.auth.get_player(account_name, r6sapi.Platforms.UPLAY)
        except r6sapi.exceptions.InvalidRequest:
            raise commands.BadArgument("Couldn't find a Uplay account with that name.")
        
        try:
            await account.check_level()
            await account.check_general()
            # await account.load_rank('NA')
        except:
            raise commands.BadArgument("Found the Uplay account but couldn't gather any information.")

After executing this code, accessing attributes such as matches_won, or xp seems to work fine, however as soon as the commented out load_rank is added into the program, the program will never go past that, any code below that line will not execute at all, and no exceptions are caught by the except clause. It seems to simply freeze the loop when ran.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions