[GH-ISSUE #35] TypeError: 'NoneType' object is not subscriptable #23

Open
opened 2026-03-04 12:28:07 +03:00 by kerem · 1 comment
Owner

Originally created by @JuanIsOnline on GitHub (Nov 23, 2022).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/35

``Hi. The program was working last night perfectly, today I try to open it and it hangs and gets stuck. I assume it's because the account is trying to create a session for, the password changed. I do not know where the information is saved so that I can remove the accounts and change the password. I tried to delete the EXE file and download it again, but that did not work as it must be saving accounts somewhere.

`[2022-11-23 07:50:30,172 :: gui\mainui.py -> 135: init() :: INFO] -> Main window init completed !

[2022-11-23 07:50:30,378 :: utils\utils.py -> 18: login_user() :: INFO] -> logging in user 'ACCC****@*.'

[2022-11-23 07:50:30,379 :: utils\utils.py -> 24: login_user() :: INFO] -> Session file exists for user, attempting to use it 'MORe****@*.'

[2022-11-23 07:50:32,317 :: utils\utils.py -> 38: login_user() :: ERROR] -> Failed logging in user 'MORe****@*.', invalid credentials

[2022-11-23 07:50:32,318 :: runtimedata.py -> 48: handle_exception() :: CRITICAL] -> Uncaught exception
Traceback (most recent call last):

File "worker\session.py", line 28, in run

TypeError: 'NoneType' object is not subscriptable`

EDIT1: After more diging, I found the directory for the saved accounts, "C:\Users\USER_NAME_HERE.cache\casualOnTheSpot\sessions" and deleted the bad account .json file. All working again. I would like to still leave this here in case an update to fix this without having to go into the directory and manually delete the file.

Originally created by @JuanIsOnline on GitHub (Nov 23, 2022). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/35 ``Hi. The program was working last night perfectly, today I try to open it and it hangs and gets stuck. I assume it's because the account is trying to create a session for, the password changed. I do not know where the information is saved so that I can remove the accounts and change the password. I tried to delete the EXE file and download it again, but that did not work as it must be saving accounts somewhere. `[2022-11-23 07:50:30,172 :: gui\mainui.py -> 135: __init__() :: INFO] -> Main window init completed ! [2022-11-23 07:50:30,378 :: utils\utils.py -> 18: login_user() :: INFO] -> logging in user 'ACCC****@****.***' [2022-11-23 07:50:30,379 :: utils\utils.py -> 24: login_user() :: INFO] -> Session file exists for user, attempting to use it 'MORe****@****.***' [2022-11-23 07:50:32,317 :: utils\utils.py -> 38: login_user() :: ERROR] -> Failed logging in user 'MORe****@****.***', invalid credentials [2022-11-23 07:50:32,318 :: runtimedata.py -> 48: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\session.py", line 28, in run TypeError: 'NoneType' object is not subscriptable` EDIT1: After more diging, I found the directory for the saved accounts, "C:\Users\USER_NAME_HERE\.cache\casualOnTheSpot\sessions" and deleted the bad account .json file. All working again. I would like to still leave this here in case an update to fix this without having to go into the directory and manually delete the file.
Author
Owner

@casualsnek commented on GitHub (May 18, 2023):

This issue should be fixed now ! Now login failures are handled properly and should not cause it to freeze !

<!-- gh-comment-id:1553158553 --> @casualsnek commented on GitHub (May 18, 2023): This issue should be fixed now ! Now login failures are handled properly and should not cause it to freeze !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/onthespot#23
No description provided.