Skip to content
Snippets Groups Projects

catch the case where directory no longer exists

Merged Charlotte Hausman requested to merge fix_dir_not_exist_abort_error into main
@@ -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)
Loading