Skip to content

fix: remove dead code before raise in _create_manager_agent#5414

Open
Yanyadua wants to merge 1 commit intocrewAIInc:mainfrom
Yanyadua:fix/remove-dead-code-manager-tools
Open

fix: remove dead code before raise in _create_manager_agent#5414
Yanyadua wants to merge 1 commit intocrewAIInc:mainfrom
Yanyadua:fix/remove-dead-code-manager-tools

Conversation

@Yanyadua
Copy link
Copy Markdown

Summary

  • Remove unreachable manager.tools = [] assignment in _create_manager_agent() that is immediately followed by a raise Exception, making the assignment dead code.

Details

In crew.py, the _create_manager_agent method had this code:

manager.tools = []
raise Exception("Manager agent should not have tools")

Remove unreachable `manager.tools = []` assignment that is immediately
followed by a raise statement, making the assignment dead code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant