mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-30 23:02:50 +00:00
fix linter
This commit is contained in:
@@ -1129,7 +1129,7 @@ class AgentExecutor(Flow[AgentExecutorState], CrewAgentExecutorMixin):
|
||||
# asyncio.gather preserves input order, so zip gives us the exact
|
||||
# todo ↔ result (or exception) mapping.
|
||||
step_results: list[tuple[TodoItem, object]] = []
|
||||
for todo, item in zip(ready, gathered):
|
||||
for todo, item in zip(ready, gathered, strict=True):
|
||||
if isinstance(item, Exception):
|
||||
error_msg = f"Error: {item!s}"
|
||||
todo.result = error_msg
|
||||
|
||||
Reference in New Issue
Block a user