fix: config file not found error

This commit is contained in:
Piotr Dec 2025-12-02 19:38:53 +01:00
parent 480471a5ef
commit 9afd133066
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0

View file

@ -43,6 +43,9 @@ class Settings(BaseSettings):
if p.exists():
with p.open("r", encoding="utf-8") as fh:
data = yaml.safe_load(fh) or {}
else:
import sys
sys.stderr.write(f"Warning: Config file {p} not found.")
return cls(**data)