mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Get that script is a dict
This commit is contained in:
parent
5a4727586e
commit
70208061a9
|
@ -140,6 +140,11 @@ class ScriptInterpreter(CommandsMixin):
|
|||
def is_valid(self):
|
||||
"""Return True if script is usable."""
|
||||
|
||||
if not isinstance(self.script, dict):
|
||||
self.errors.append("Script must be a dictionary")
|
||||
# Return early since the method assumes a dict
|
||||
return False
|
||||
|
||||
# Check that installers contains all required fields
|
||||
for field in ('runner', 'name', 'game_slug'):
|
||||
if not hasattr(self, field) or not getattr(self, field):
|
||||
|
|
Loading…
Reference in a new issue