From df924b0864fb6832a7041a75c647ed0cb3d5fbf2 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Mon, 19 Dec 2022 11:04:25 +0100 Subject: [PATCH] doh --- core/base/libs/socrate/socrate/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/base/libs/socrate/socrate/system.py b/core/base/libs/socrate/socrate/system.py index b6ee7761..96247158 100644 --- a/core/base/libs/socrate/socrate/system.py +++ b/core/base/libs/socrate/socrate/system.py @@ -28,7 +28,7 @@ def set_env(required_secrets=[]): secret_key = os.environ.get('SECRET_KEY') if not secret_key: try: - secret_key = open(env.get("SECRET_KEY_FILE"), "r").read().strip() + secret_key = open(os.environ.get("SECRET_KEY_FILE"), "r").read().strip() except Exception as exc: log.error(f"Can't read SECRET_KEY from file: {exc}") raise exc