Clean up to match enterprise

This commit is contained in:
Brandon Hancock
2025-01-30 17:34:45 -05:00
parent 477cce321f
commit a658e283f2

View File

@@ -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({})