Set steamid to None for non steam games.

This commit is contained in:
Lior Stern 2020-03-18 14:06:40 +02:00 committed by Mathieu Comandon
parent ece3f8258a
commit a7da623143

View file

@ -34,7 +34,7 @@ class ServiceGame:
"""Return the SteamID, this is a special case since Steam's appid's are
a field in the game table. Keeping this here allows to reuse the install method.
"""
if hasattr(self, "appid"):
if hasattr(self, "appid") and hasattr(self, "runner") and "steam" in self.runner:
return int(self.appid)
return None