tanukiretro: I pulled my copy of gogrepoc.py from github today (2025.06.13). I was seeing the following error when trying to login
> python ../gogrepoc.py login
You must use a GOG or GOG Galaxy account, Google/Discord sign-ins are not currently supported.
Username: xxxxxxxxx
Password:
15:33:37 | attempting Galaxy login as 'xxxxxxxxx' ...
15:33:39 | fatal...
Traceback (most recent call last):
File "../gogrepoc.py", line 4299, in <module>
main(process_argv(sys.argv))
File "../gogrepoc.py", line 4010, in main
cmd_login(args.username, args.password)
File "../gogrepoc.py", line 1850, in cmd_login
if token_data['totp_url'] is not None:
~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'totp_url'
I was able to patch the code as follows:
diff gogrepoc/gogrepoc-2025.06.13/gogrepoc-main/gogrepoc.py gogrepoc.py
1850c1850,1855
< if token_data['totp_url'] is not None:
---
>
> totp_url = token_data.get('totp_url')
> #if token_data['totp_url'] is not None:
> if totp_url is not None:
> # Proceed with TOTP-related logic
> print(f"TOTP URL: {totp_url}")
I hope this helps anyone who runs into the same issue.
Do you have an Authenticator setup ? Asking because I've got a GitHub report on a very similar issue but they said they did have an Authenticator but as far as I can tell this error should only occur for people without an Authenticator setup,