mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 07:42:40 +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
|
return
|
||||||
|
|
||||||
|
if not crew:
|
||||||
|
click.echo("No crew found. Use --all to reset all memories.")
|
||||||
|
return
|
||||||
|
|
||||||
if long:
|
if long:
|
||||||
crew.reset_memories(command_type="long")
|
crew.reset_memories(command_type="long")
|
||||||
click.echo("Long term memory has been reset.")
|
click.echo("Long term memory has been reset.")
|
||||||
|
|||||||
Reference in New Issue
Block a user