From d042298c59ca87e80baabeaad12791f3c1ed0e5c Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 19:08:22 +0000 Subject: [PATCH] fix: Handle type checking errors in reset-memories command Co-Authored-By: Joe Moura --- src/crewai/cli/reset_memories_command.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crewai/cli/reset_memories_command.py b/src/crewai/cli/reset_memories_command.py index 0e391f83f..2933a2bd4 100644 --- a/src/crewai/cli/reset_memories_command.py +++ b/src/crewai/cli/reset_memories_command.py @@ -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.")