Skip to content

Commit 1afe2b7

Browse files
committed
fix worfklow if-elif in prepare steps
1 parent e0494a6 commit 1afe2b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/agno/agno/workflow/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3636,7 +3636,7 @@ def _prepare_steps(self):
36363636
step_name = step.name or f"step_{i + 1}"
36373637
log_debug(f"Step {i + 1}: Team '{step_name}' with {len(step.members)} members")
36383638
prepared_steps.append(Step(name=step_name, description=step.description, team=step))
3639-
if isinstance(step, Step) and step.add_workflow_history is True and self.db is None:
3639+
elif isinstance(step, Step) and step.add_workflow_history is True and self.db is None:
36403640
log_warning(
36413641
f"Step '{step.name or f'step_{i+1}'}' has add_workflow_history=True "
36423642
"but no database is configured in the Workflow. "

0 commit comments

Comments
 (0)