throw error if not config file found
Some checks failed
Mypy / mypy (push) Successful in 44s
Pytest / pytest (3.13) (push) Failing after 45s
Pytest / pytest (3.12) (push) Failing after 46s
Pytest / pytest (3.14) (push) Failing after 45s
Ruff / ruff (push) Successful in 32s

This commit is contained in:
Justus Kuhlmann 2025-12-04 12:30:50 +01:00
commit aa51d5d786
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -9,6 +9,8 @@ def get_tracker(path: str) -> str:
config = ConfigParser()
if os.path.exists(config_path):
config.read(config_path)
else:
raise FileNotFoundError(f"No config file found in {path}.")
tracker = config.get('core', 'tracker', fallback='datalad')
return tracker