Best effort in context expansion

This commit is contained in:
Fabio Manganiello 2018-06-07 09:33:26 +02:00
parent bb21595678
commit f67b737a54

View file

@ -106,7 +106,10 @@ class Request(Message):
for (k, v) in context.items():
if isinstance(v, Message):
v = json.loads(str(v))
exec('{}={}'.format(k, v))
try:
exec('{}={}'.format(k, v))
except:
exec('{}="{}"'.format(k, v))
parsed_value = ''
while value: