From c5b662ce48160b5eb7293182266cfbc41257094d Mon Sep 17 00:00:00 2001 From: Eternal Reclaimer <98760976+kyegomez@users.noreply.github.com> Date: Tue, 9 Jan 2024 13:52:47 -0500 Subject: [PATCH] Update swarm_net.py --- swarms/structs/swarm_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarms/structs/swarm_net.py b/swarms/structs/swarm_net.py index 4a0ae0de..1aa05227 100644 --- a/swarms/structs/swarm_net.py +++ b/swarms/structs/swarm_net.py @@ -148,7 +148,7 @@ class SwarmNetwork(BaseStructure): """ self.logger.info(f"Running task {task} on agent {agent_id}") try: - for agent in self.agents_pool: + for agent in self.agent_pool: if agent.id == agent_id: return agent.run(task, *args, **kwargs) self.logger.info(f"No agent found with ID {agent_id}")