From 65926978bdd527e628582212b23a58d41e3d3694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Reuh=20Fildadut?= Date: Thu, 9 Oct 2025 17:04:39 +0200 Subject: [PATCH] fix: show error when configuration file path explicitely set but not found --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index f408667..ef2bedf 100644 --- a/main.py +++ b/main.py @@ -21,6 +21,9 @@ class Config: if config_path.exists(): with config_path.open("rb") as f: config = tomllib.load(f) + elif "CONFIG_PATH" in os.environ: + print(f"Configuration file {config_path} does not exist; create it or change the CONFIG_PATH environment variable to another path") + exit(1) else: config = {}