forked from platypush/platypush
If the string assignment didn't work either, give up without failing
This commit is contained in:
parent
37f952fc41
commit
4d48506cb2
1 changed files with 4 additions and 1 deletions
|
@ -218,7 +218,10 @@ class IfProcedure(Procedure):
|
||||||
exec('{}={}'.format(k, v))
|
exec('{}={}'.format(k, v))
|
||||||
except:
|
except:
|
||||||
if isinstance(v, str):
|
if isinstance(v, str):
|
||||||
exec('{}="{}"'.format(k, re.sub('(^|[^\\\])"', '\1\\"', v)))
|
try:
|
||||||
|
exec('{}="{}"'.format(k, re.sub('(^|[^\\\])"', '\1\\"', v)))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
condition_true = eval(self.condition)
|
condition_true = eval(self.condition)
|
||||||
response = Response()
|
response = Response()
|
||||||
|
|
Loading…
Reference in a new issue