Revert "Don't blacklist games on failed API calls"
This reverts commit 124d2c8ec7.
Probably did more harm than good. You can't win though.
This commit is contained in:
@@ -48,16 +48,10 @@ class SteamAPIManager(AsyncManager):
|
|||||||
appid = additional_data.get("steam_appid", None)
|
appid = additional_data.get("steam_appid", None)
|
||||||
if appid is None:
|
if appid is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Get online metadata
|
# Get online metadata
|
||||||
try:
|
try:
|
||||||
online_data = self.steam_api_helper.get_api_data(appid=appid)
|
online_data = self.steam_api_helper.get_api_data(appid=appid)
|
||||||
|
except (SteamNotAGameError, SteamGameNotFoundError):
|
||||||
except SteamGameNotFoundError:
|
|
||||||
return
|
|
||||||
|
|
||||||
except SteamNotAGameError:
|
|
||||||
game.update_values({"blacklisted": True})
|
game.update_values({"blacklisted": True})
|
||||||
|
|
||||||
else:
|
else:
|
||||||
game.update_values(online_data)
|
game.update_values(online_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user