develop #41

Merged
jkuhl merged 210 commits from develop into master 2026-05-07 16:01:02 +02:00
Showing only changes of commit 2f83c1f9cb - Show all commits

throw error if library path is not found in get_db_file

Justus Kuhlmann 2026-05-05 16:21:05 +02:00
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -115,6 +115,8 @@ def get_db_file(path: Path) -> Path:
db_file: str
The file holding the database.
"""
if not os.path.exists(path):
raise FileNotFoundError(f"Corrlib path {path} does not exist.")
config_path = os.path.join(path, CONFIG_FILENAME)
config = ConfigParser()
if os.path.exists(config_path):