gathering data from Steam API is ignoring too many apps
In get_apps_data.py
in function gatherDataForApp
:
Sometimes (I haven't figured out yet when exactly) we get into the except
block but that shouldn't be the case.
See app ID 1415120
as an example: Function went into the except
block but calling it now does not throw a JSONDecodeError
Expected behaviour: Only go into the except
block when the app ID got a response (because it wasn't caught in the loop) but it's not JSON (-> JSONDecodeError
)
Actual behaviour: Went into the except
block even when the response did not throw a JSONDecodeError
after trying the ID manually with steampowered.com/app/app_id.
Possible fix: I guess that it happens when the API got overloaded with requests. If that's the case then adding time.sleep()
in the except
block and looping over it should do the trick