Compare commits

..

2 commits

Author SHA1 Message Date
Ben 6cb0bac2e2
Fix WMN_CONFIG_PATH env var missing at runtime 2024-05-29 13:19:24 +02:00
Ben 7730fb5c46
Fix error message when config is missing 2024-05-29 13:12:21 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@ RUN groupadd -g "${WMN_GID}" wmn && \
USER wmn
ARG WMN_CONFIG_PATH=/etc/wmn/config.yml
ENV WMN_CONFIG_PATH=$WMN_CONFIG_PATH
WORKDIR /opt/webhook-matrix-notifier
ENV PIPENV_VENV_IN_PROJECT=1

View file

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