From 118f71f5a353609b7db1433da59f6b3004cb396e Mon Sep 17 00:00:00 2001 From: Phil Weir Date: Thu, 3 Oct 2024 14:56:31 +0100 Subject: [PATCH] fix: ensure that email addresses are never unset --- settings_docker.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/settings_docker.py b/settings_docker.py index e2b6014..2cc90d3 100644 --- a/settings_docker.py +++ b/settings_docker.py @@ -20,12 +20,12 @@ COMPRESS_OFFLINE = COMPRESS_OFFLINE and COMPRESS_OFFLINE.lower() == "true" COMPRESS_ENABLED = os.getenv("COMPRESS_ENABLED") COMPRESS_ENABLED = COMPRESS_ENABLED and COMPRESS_ENABLED.lower() == "true" -EMAIL_BACKEND = os.getenv("EMAIL_BACKEND") or EMAIL_BACKEND -EMAIL_USE_TLS = os.getenv("EMAIL_USE_TLS") or EMAIL_USE_TLS -EMAIL_HOST = os.getenv("EMAIL_HOST") or EMAIL_HOST -EMAIL_HOST_USER = os.getenv("EMAIL_HOST_USER") or EMAIL_HOST_USER -EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD") or EMAIL_HOST_PASSWORD -EMAIL_PORT = os.getenv("EMAIL_PORT") or EMAIL_PORT +EMAIL_BACKEND = os.getenv("EMAIL_BACKEND") +EMAIL_USE_TLS = os.getenv("EMAIL_USE_TLS") +EMAIL_HOST = os.getenv("EMAIL_HOST") +EMAIL_HOST_USER = os.getenv("EMAIL_HOST_USER") +EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD") +EMAIL_PORT = os.getenv("EMAIL_PORT") # Cover both forms, the first being deprecated ARCHES_NAMESPACE_FOR_DATA_EXPORT = os.getenv("ARCHES_NAMESPACE_FOR_DATA_EXPORT", "http://arches:8000/")