ITADN

TypeError: 'NoneType' object is not subscriptable during maybe mobile searches

#320Openkimjinzhan 创建于 2025-06-20
bugstale
K
kimjinzhancommented
### 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: `2025-06-20 21:04:26,835 [INFO] ********************@hotmail.com******************** DevTools listening on ws://127.0.0.1:65447/devtools/browser/f442b83e-226a-45b8-980a-68cee44a6a57 2025-06-20 21:04:36,888 [INFO] Screen size: 1754x1147 2025-06-20 21:04:36,889 [INFO] Device size: 1699x996 2025-06-20 21:04:47,399 [INFO] [LOGIN] Already logged-in 2025-06-20 21:04:50,261 [INFO] [POINTS] You have 10,509.00 points on your account 2025-06-20 21:04:50,262 [INFO] [ACTIVITIES] Trying to complete all activities... 2025-06-20 21:05:43,261 [INFO] [ACTIVITIES] Done 2025-06-20 21:06:00,135 [INFO] [PUNCH CARDS] Trying to complete the Punch Cards... 2025-06-20 21:06:29,567 [INFO] [PUNCH CARDS] Exiting 2025-06-20 21:06:29,568 [INFO] [BING] Starting Desktop Edge Bing searches... 2025-06-20 21:06:31,829 [INFO] [BING] Remaining searches=RemainingSearches(desktop=0, mobile=20) 2025-06-20 21:06:31,829 [INFO] [BING] Finished Desktop Edge Bing searches ! 2025-06-20 21:06:33,719 [ERROR]  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 2025-06-20 21:06:34,198 [INFO] [POINTS] Data saved for the next day.` ### 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 条评论