Skip to content
Snippets Groups Projects
Commit 70d0d9df authored by leufen1's avatar leufen1
Browse files

small change

parent 0a74a59c
No related branches found
No related tags found
5 merge requests!319add all changes of dev into release v1.4.0 branch,!318Resolve "release v1.4.0",!317enabled window_lead_time=1,!295Resolve "data handler FIR filter",!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #68470 passed
......@@ -80,7 +80,7 @@ class DefaultDataHandler(AbstractDataHandler):
def _cleanup(self):
directory = os.path.dirname(self._save_file)
if os.path.exists(directory) is False:
os.makedirs(directory)
os.makedirs(directory, exist_ok=True)
if os.path.exists(self._save_file):
shutil.rmtree(self._save_file, ignore_errors=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment