From 408100ffcd5e0c5348a1eae48f7aefdd8f7b2760 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Thu, 7 Sep 2023 18:43:38 +0530 Subject: [PATCH] fix: fail if env vars are not set --- run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run.py b/run.py index 6e9e963..a4eb067 100755 --- a/run.py +++ b/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