🚧 Initial work on retryable managers

This commit is contained in:
GeoffreyCoulaud
2023-05-31 15:22:08 +02:00
parent 743db2b747
commit 0b188136a2
6 changed files with 52 additions and 26 deletions

View File

@@ -75,7 +75,8 @@ class SteamHelper:
logging.debug("Appid %s not found", appid)
raise SteamGameNotFoundError()
if data["data"]["type"] != "game":
game_types = ("game", "demo")
if data["data"]["type"] not in game_types:
logging.debug("Appid %s is not a game", appid)
raise SteamNotAGameError()