diff --git a/cmem_plugin_reason/plugin_reason.py b/cmem_plugin_reason/plugin_reason.py index 7fd12b9..a169214 100644 --- a/cmem_plugin_reason/plugin_reason.py +++ b/cmem_plugin_reason/plugin_reason.py @@ -248,8 +248,6 @@ def __init__( # noqa: PLR0913 def get_graphs(self, graphs: dict, context: ExecutionContext) -> None: """Get graphs from CMEM""" - if not Path(self.temp).exists(): - Path(self.temp).mkdir(parents=True) for graph in graphs: self.log.info(f"Fetching graph {graph}.") with (Path(self.temp) / graphs[graph]).open("w", encoding="utf-8") as file: diff --git a/cmem_plugin_reason/plugin_validate.py b/cmem_plugin_reason/plugin_validate.py index 2fbcc5d..3fae982 100644 --- a/cmem_plugin_reason/plugin_validate.py +++ b/cmem_plugin_reason/plugin_validate.py @@ -133,8 +133,6 @@ def __init__( # noqa: PLR0913 def get_graphs(self, graphs: dict, context: ExecutionContext) -> None: """Get graphs from CMEM""" - if not Path(self.temp).exists(): - Path(self.temp).mkdir(parents=True) for graph in graphs: self.log.info(f"Fetching graph {graph}.") with (Path(self.temp) / graphs[graph]).open("w", encoding="utf-8") as file: