For example, if the environment variable SAMBAL_SESSION_SECRET is missing, rather than exiting cleanly and just saying that, instead it spits out a traceback with a confusing message to the end user about requiring either "redis.sessions.secret" or "redis.sessions.cookie_signer".
We don't want to see that traceback or message from redis.sessions at all, we want to show our own error message saying the env var is missing instead.
All the other env vars need to be checked too, to see how the app behaves if they are not set.
For example, if the environment variable
SAMBAL_SESSION_SECRET
is missing, rather than exiting cleanly and just saying that, instead it spits out a traceback with a confusing message to the end user about requiring either "redis.sessions.secret" or "redis.sessions.cookie_signer".We don't want to see that traceback or message from redis.sessions at all, we want to show our own error message saying the env var is missing instead.
All the other env vars need to be checked too, to see how the app behaves if they are not set.