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.
Here is my full code:
After executing this code, accessing attributes such as
matches_won, orxpseems to work fine, however as soon as the commented outload_rankis 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.