refactor/data_backend #12

Merged
jkuhl merged 36 commits from refactor/data_backend into develop 2025-12-04 15:47:45 +01:00
Showing only changes of commit aa51d5d786 - Show all commits

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

Justus Kuhlmann 2025-12-04 12:30:50 +01:00
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