Update swarm_net.py

pull/346/head
Eternal Reclaimer 1 year ago committed by GitHub
parent 2e2c31d3b6
commit c5b662ce48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -148,7 +148,7 @@ class SwarmNetwork(BaseStructure):
""" """
self.logger.info(f"Running task {task} on agent {agent_id}") self.logger.info(f"Running task {task} on agent {agent_id}")
try: try:
for agent in self.agents_pool: for agent in self.agent_pool:
if agent.id == agent_id: if agent.id == agent_id:
return agent.run(task, *args, **kwargs) return agent.run(task, *args, **kwargs)
self.logger.info(f"No agent found with ID {agent_id}") self.logger.info(f"No agent found with ID {agent_id}")

Loading…
Cancel
Save