Commit 2bebb3ef authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Add error log if CONFIG env variable is not set

parent 26b2fdc6
# Changelog
## next
- Add explicit error message on startup if `CONFIG` env variable is not set
## 0.4.0a5
- Fix `Recommandations` title display
......
......@@ -48,6 +48,9 @@ if SHIELDS_IO_BASE_URL:
SHIELDS_IO_BASE_URL = without_trailing_slash(SHIELDS_IO_BASE_URL)
CONFIG_FILE = os.environ.get("CONFIG_FILE") or None
if not CONFIG_FILE:
log.error("CONFIG_FILE environment variable is not set, can't go further")
CONFIG = None
if CONFIG_FILE:
CONFIG_FILE = Path(CONFIG_FILE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment