fut
fut copied to clipboard
Gracious error handling needed for empty profiles
If a new account has only been registered through the web but never played on a console/pc through the game I receive the following error:
Traceback (most recent call last):
File "
self.__login__(email, passwd, secret_answer, platform, code, emulate)
File "***\fut\core.py", line 218, in _login _ rc = rc.json()['userAccountInfo']['personas'][0] KeyError: 'userAccountInfo'
you have to connect on console or pc to set your secret answer before using web app
Could You attach html code so i can make exception?
Several years later, but just downloaded the fut 0.2.9 library and getting the same issue originally posted here. Any idea what might be causing this? I've logged in using my secret answer before, i even tried updating it to make sure but still same issue.
File "C:\Users\kswingle\AppData\Local\Continuum\Anaconda3\lib\site-packages\fut\core.py", line 171, in init self.login(email, passwd, secret_answer, platform, code, emulate) File "C:\Users\kswingle\AppData\Local\Continuum\Anaconda3\lib\site-packages\fut\core.py", line 332, in login personas = rc.json()['userAccountInfo']['personas'] KeyError: 'userAccountInfo'
@swingo256 I need to see logs to make exception for this but looks like there is no valid persona found (active pc/xbox/ps team for fifa17).