Cast template_string to str in _substitute check

This commit is contained in:
Mathieu Comandon 2018-11-01 01:11:05 -07:00
parent ca9b4d5d3e
commit 52b378090f

View file

@ -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 = {