Skip to content
Snippets Groups Projects
Commit 4d6cb932 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

catch the case were directory no longer exists

parent 0819d5d0
No related branches found
No related tags found
1 merge request!1299catch the case where directory no longer exists
Pipeline #9353 failed
......@@ -117,7 +117,7 @@ class CapoInjector:
def clear_subspace(self):
logger.info(f"Clearing capo subspace file from {self.dir_path.__str__()}...")
if Path(self.dir_path).exists():
if self.dir_path.exists():
for file in os.listdir(self.dir_path):
if file.endswith(".properties"):
Path.unlink(self.dir_path / file)
......
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