mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-14 02:28:30 +00:00
fix: Handle type checking errors in reset-memories command
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -52,6 +52,10 @@ def reset_memories_command(
|
||||
)
|
||||
return
|
||||
|
||||
if not crew:
|
||||
click.echo("No crew found. Use --all to reset all memories.")
|
||||
return
|
||||
|
||||
if long:
|
||||
crew.reset_memories(command_type="long")
|
||||
click.echo("Long term memory has been reset.")
|
||||
|
||||
Reference in New Issue
Block a user