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