From 1fe58c393802d3f837363438276695987ba68b0f Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sat, 25 Mar 2023 14:12:06 +0100 Subject: [PATCH] ensure the backup folder will overwrite existing folders --- freqtrade/freqai/data_drawer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/freqai/data_drawer.py b/freqtrade/freqai/data_drawer.py index cfed65771..79ceab3d4 100644 --- a/freqtrade/freqai/data_drawer.py +++ b/freqtrade/freqai/data_drawer.py @@ -223,7 +223,8 @@ class FreqaiDataDrawer: value.to_parquet(filename) # create a backup - shutil.copytree(self.historic_predictions_folder, self.historic_predictions_bkp_folder) + shutil.copytree(self.historic_predictions_folder, + self.historic_predictions_bkp_folder, dirs_exist_ok=True) def save_metric_tracker_to_disk(self): """