fix null on some unit tests

This commit is contained in:
Kenneth Kehl
2024-04-02 14:02:04 -07:00
parent 10ed1dab22
commit cde0ab018a

View File

@@ -181,7 +181,7 @@ def sign_in():
current_app.config["SECRET_KEY"],
current_app.config["DANGEROUS_SALT"],
)
url = os.environ["LOGIN_DOT_GOV_INITIAL_SIGNIN_URL"]
url = os.getenv("LOGIN_DOT_GOV_INITIAL_SIGNIN_URL")
# handle unit tests
if url is not None:
url = url.replace("NONCE", token)