diff --git a/services/steam.py b/services/steam.py index 1b2b5cf..748617d 100644 --- a/services/steam.py +++ b/services/steam.py @@ -26,7 +26,12 @@ def IsUpdated(self: Self, appId: int) -> DiscordEmbed | bool: ) if (not data) or (data.get("status") != "success"): - return + return False + + if not data["data"][str(appId)].get("common"): + logger.warning(f"Failed to fetch Steam app {appId}, no common data") + + return False name: str = data["data"][str(appId)]["common"]["name"] icon: str = data["data"][str(appId)]["common"]["icon"]