chore: update encryption key log line [LET-5474] (#5393)

update log

Co-authored-by: Letta Bot <noreply@letta.com>
This commit is contained in:
jnjpng
2025-10-13 15:51:33 -07:00
committed by Caren Thomas
parent 15a4fe3228
commit 7cac9a1a3e

View File

@@ -47,7 +47,9 @@ class CryptoUtils:
master_key = settings.encryption_key
if not master_key:
raise ValueError("No encryption key configured. Set LETTA_ENCRYPTION_KEY environment variable.")
raise ValueError(
"No encryption key configured. Please set the LETTA_ENCRYPTION_KEY environment variable (not fully supported yet for Letta v0.12.1 and below)."
)
# Generate random salt and IV
salt = os.urandom(cls.SALT_SIZE)
@@ -91,7 +93,9 @@ class CryptoUtils:
master_key = settings.encryption_key
if not master_key:
raise ValueError("No encryption key configured. Set LETTA_ENCRYPTION_KEY environment variable.")
raise ValueError(
"No encryption key configured. Please set the LETTA_ENCRYPTION_KEY environment variable (not fully supported yet for Letta v0.12.1 and below)."
)
try:
# Decode from base64