fix: fail if env vars are not set
This commit is contained in:
parent
b0bfe003c9
commit
408100ffcd
1 changed files with 2 additions and 0 deletions
2
run.py
2
run.py
|
@ -30,6 +30,8 @@ def configure_logger():
|
|||
def get_env(name) -> str:
|
||||
env = FTEST_AUTH = os.environ.get(name)
|
||||
logger.info(f"Environment: {name}: {env}")
|
||||
if env is None:
|
||||
raise Exception(f"Please set environment variable {name}. See https://git.batsense.net/ForgeFlux/webfinger-test#environment-variables")
|
||||
return env
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue