mirror of
https://github.com/lutris/lutris
synced 2024-09-18 15:22:27 +00:00
Cast template_string to str in _substitute check
This commit is contained in:
parent
ca9b4d5d3e
commit
52b378090f
|
@ -698,9 +698,9 @@ class ScriptInterpreter(CommandsMixin):
|
|||
|
||||
def _substitute(self, template_string):
|
||||
"""Replace path aliases with real paths."""
|
||||
if template_string.lower() == 'true':
|
||||
if str(template_string).lower() == 'true':
|
||||
return True
|
||||
if template_string.lower() == 'false':
|
||||
if str(template_string).lower() == 'false':
|
||||
return False
|
||||
|
||||
replacements = {
|
||||
|
|
Loading…
Reference in a new issue