diff --git a/argos/agent.py b/argos/agent.py index 2cca0d6..c03bb8e 100644 --- a/argos/agent.py +++ b/argos/agent.py @@ -196,7 +196,7 @@ class ArgosAgent: # pylint: disable-msg=too-many-instance-attributes await asyncio.gather(*requests) tasks = [] - for task in data: + for task in response.json(): tasks.append(self._complete_task(task)) if tasks: