From 30b082eaa600a219419d3c6fa8a1f0f54c5fdaff Mon Sep 17 00:00:00 2001 From: Carlos Souza Date: Mon, 9 Dec 2024 13:23:46 -0500 Subject: [PATCH] Cleanup after the rm of the directories --- src/crewai/memory/storage/rag_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/memory/storage/rag_storage.py b/src/crewai/memory/storage/rag_storage.py index 3ed55140d..fd4c77838 100644 --- a/src/crewai/memory/storage/rag_storage.py +++ b/src/crewai/memory/storage/rag_storage.py @@ -152,9 +152,9 @@ class RAGStorage(BaseRAGStorage): try: if self.app: self.app.reset() + shutil.rmtree(f"{db_storage_path()}/{self.type}") self.app = None self.collection = None - shutil.rmtree(f"{db_storage_path()}/{self.type}") except Exception as e: if "attempt to write a readonly database" in str(e): # Ignore this specific error