diff --git a/platypush/procedure/__init__.py b/platypush/procedure/__init__.py index cd1ff26cf..f255b6bd3 100644 --- a/platypush/procedure/__init__.py +++ b/platypush/procedure/__init__.py @@ -186,7 +186,14 @@ class LoopProcedure(Procedure): self.requests = requests def execute(self, _async=None, **context): - iterable = Request.expand_value_from_context(self.iterable, **context) + # noinspection PyBroadException + try: + iterable = eval(self.iterable) + if not hasattr(iterable, '__iter__'): + raise RuntimeError + except: + iterable = Request.expand_value_from_context(self.iterable, **context) + response = Response() for item in iterable: