mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
Fix undefined name branch_to_use in console_formatter.py
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -591,6 +591,13 @@ class ConsoleFormatter:
|
|||||||
|
|
||||||
# Remove the thinking status node when complete
|
# Remove the thinking status node when complete
|
||||||
if "Thinking" in str(tool_branch.label):
|
if "Thinking" in str(tool_branch.label):
|
||||||
|
# Define branch_to_use here to fix the undefined name issue
|
||||||
|
branch_to_use = (
|
||||||
|
self.current_lite_agent_branch
|
||||||
|
or agent_branch
|
||||||
|
or self.current_task_branch
|
||||||
|
)
|
||||||
|
|
||||||
parents = [
|
parents = [
|
||||||
branch_to_use if 'branch_to_use' in locals() else None,
|
branch_to_use if 'branch_to_use' in locals() else None,
|
||||||
self.current_lite_agent_branch,
|
self.current_lite_agent_branch,
|
||||||
|
|||||||
Reference in New Issue
Block a user