Fix error message when config is missing

This commit is contained in:
Ben 2024-05-29 13:12:21 +02:00
parent 0ce9e81c86
commit 7730fb5c46
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -56,7 +56,7 @@ def config_path() -> pathlib.Path:
path = pathlib.Path(path) path = pathlib.Path(path)
path = path.absolute().resolve() path = path.absolute().resolve()
if not path.exists(): if not path.exists():
raise RuntimeError("Cannot find config: " + path) raise RuntimeError(f"Cannot find config: {path}")
return path return path