From a658e283f2786a79fe0dd8135b386f01edb4dbc6 Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Thu, 30 Jan 2025 17:34:45 -0500 Subject: [PATCH] Clean up to match enterprise --- src/crewai/utilities/training_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/crewai/utilities/training_handler.py b/src/crewai/utilities/training_handler.py index b6b3c38b6..2d34f3261 100644 --- a/src/crewai/utilities/training_handler.py +++ b/src/crewai/utilities/training_handler.py @@ -35,6 +35,4 @@ class CrewTrainingHandler(PickleHandler): def clear(self) -> None: """Clear the training data by removing the file or resetting its contents.""" if os.path.exists(self.file_path): - with open(self.file_path, "wb") as file: - # Overwrite with an empty dictionary - self.save({}) + self.save({})