Check for the appid before loading extras.

You can have a GOG game off the Lutris website that does not download from GOG - you provide the installer file. "Alient Shooter" is one of these.

In this case, we have no appid and can get no extras, and we should not try to get them.
This commit is contained in:
Daniel Johnson 2024-01-13 08:45:34 -05:00
parent f56f4dd0e4
commit 2b8703346a

View file

@ -201,7 +201,7 @@ class ScriptInterpreter(GObject.Object, CommandsMixin):
def get_extras(self):
"""Get extras and store them to move them at the end of the install"""
if not self.service or not self.service.has_extras:
if not self.service or not self.service.has_extras or not self.installer.service_appid:
return []
return self.service.get_extras(self.installer.service_appid)