TypeError: 'NoneType' object is not subscriptable during maybe mobile searches
bugstale
### Before submitting a bug report...
- [x] This bug wasn't already reported.
(I have checked every bug report on GitHub)
- [x] #321
### Branch
develop
### Commit
c5b779c
### Describe the bug
When running main.py, the desktop searches complete fine, but once it starts mobile searches, the script crashes with:
`[38;5;39m2025-06-20 21:04:26,835 [INFO] ********************@hotmail.com********************[0m
DevTools listening on ws://127.0.0.1:65447/devtools/browser/f442b83e-226a-45b8-980a-68cee44a6a57
[38;5;39m2025-06-20 21:04:36,888 [INFO] Screen size: 1754x1147[0m
[38;5;39m2025-06-20 21:04:36,889 [INFO] Device size: 1699x996[0m
[38;5;39m2025-06-20 21:04:47,399 [INFO] [LOGIN] Already logged-in[0m
[38;5;39m2025-06-20 21:04:50,261 [INFO] [POINTS] You have 10,509.00 points on your account[0m
[38;5;39m2025-06-20 21:04:50,262 [INFO] [ACTIVITIES] Trying to complete all activities...[0m
[38;5;39m2025-06-20 21:05:43,261 [INFO] [ACTIVITIES] Done[0m
[38;5;39m2025-06-20 21:06:00,135 [INFO] [PUNCH CARDS] Trying to complete the Punch Cards...[0m
[38;5;39m2025-06-20 21:06:29,567 [INFO] [PUNCH CARDS] Exiting[0m
[38;5;39m2025-06-20 21:06:29,568 [INFO] [BING] Starting Desktop Edge Bing searches...[0m
[38;5;39m2025-06-20 21:06:31,829 [INFO] [BING] Remaining searches=RemainingSearches(desktop=0, mobile=20)[0m
[38;5;39m2025-06-20 21:06:31,829 [INFO] [BING] Finished Desktop Edge Bing searches ![0m
[38;5;196m2025-06-20 21:06:33,719 [ERROR] [0m
Traceback (most recent call last):
File "C:\Users\Xiaomi\Desktop\MS-Rewards-Farmer\main.py", line 33, in main
earned_points = executeBot(currentAccount)
File "C:\Users\Xiaomi\Desktop\MS-Rewards-Farmer\main.py", line 165, in executeBot
goalPoints = utils.getGoalPoints()
File "C:\Users\Xiaomi\Desktop\MS-Rewards-Farmer\src\utils.py", line 329, in getGoalPoints
return self.getBingInfo()["flyoutResult"]["userGoal"]["price"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
[38;5;39m2025-06-20 21:06:34,198 [INFO] [POINTS] Data saved for the next day.[0m`
### Import the logs
[activity.log](https://github.com/user-attachments/files/20837322/activity.log)
### Screenshots
null
### Value of dashboard variable
sorry, i dont know how ti get this.
2 条评论