Merge pull request #1183 from diegobonato/fix/handle-oserror-in-project-path-validation

Handle OSError when validating registered project paths on startup
This commit is contained in:
Dr. Dominik Jain authored and GitHub committed 2026-03-17 13:50:25 +01:00
commit 0c915bd18d
1 file changed
+6 -1
+6 -1
View File
@@ -826,7 +826,12 @@ class SerenaConfig(SharedConfig):
instance.projects = []
for path in loaded_commented_yaml["projects"]:
path = Path(path).resolve()
if not path.exists() or (path.is_dir() and not os.path.isfile(instance.get_project_yml_location(str(path)))):
try:
path_exists = path.exists()
except OSError as e:
log.warning(f"Project path {path} is not accessible ({e}), skipping.")
continue
if not path_exists or (path.is_dir() and not os.path.isfile(instance.get_project_yml_location(str(path)))):
log.warning(f"Project path {path} does not exist or no associated project configuration file found, skipping.")
continue
if path.is_file():