Skip to content

Commit

Permalink
Update swarm_net.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez authored Jan 9, 2024
1 parent 2e2c31d commit c5b662c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarms/structs/swarm_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def run_single_agent(
"""
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}")
Expand Down

0 comments on commit c5b662c

Please sign in to comment.