Skip to content
Snippets Groups Projects
Commit 8324b338 authored by lukas leufen's avatar lukas leufen
Browse files

added bugfix, /close #311 on pipeline success

parent fab62a19
Branches
Tags
6 merge requests!319add all changes of dev into release v1.4.0 branch,!318Resolve "release v1.4.0",!317enabled window_lead_time=1,!306Make Develop avail in WRF DataHandler,!305Resolve "FileExistsError in Cleanup / DataHandler Build",!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #71821 passed
This commit is part of merge request !305. Comments created here will be created in the context of that merge request.
...@@ -79,7 +79,7 @@ class DefaultDataHandler(AbstractDataHandler): ...@@ -79,7 +79,7 @@ class DefaultDataHandler(AbstractDataHandler):
def _cleanup(self): def _cleanup(self):
directory = os.path.dirname(self._save_file) directory = os.path.dirname(self._save_file)
if os.path.exists(directory) is False: if os.path.exists(directory) is False:
os.makedirs(directory) os.makedirs(directory, exist_ok=True)
if os.path.exists(self._save_file): if os.path.exists(self._save_file):
shutil.rmtree(self._save_file, ignore_errors=True) shutil.rmtree(self._save_file, ignore_errors=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment