fix: Handle type checking errors in reset-memories command

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-02-13 19:08:22 +00:00
parent c6ffdc160b
commit d042298c59

View File

@@ -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.")