diff --git a/platypush/message/request/__init__.py b/platypush/message/request/__init__.py index b24185ce2..03aa660e2 100644 --- a/platypush/message/request/__init__.py +++ b/platypush/message/request/__init__.py @@ -101,6 +101,8 @@ class Request(Message): @classmethod def expand_value_from_context(cls, value, **context): for (k, v) in context.items(): + if isinstance(v, Message): + v = json.loads(str(v)) exec('{}={}'.format(k, v)) parsed_value = ''