mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 06:53:59 +00:00
fix(core): Ignore missing secrets on deserialization (#30252)
This commit is contained in:
@@ -98,8 +98,7 @@ class Reviver:
|
||||
else:
|
||||
if self.secrets_from_env and key in os.environ and os.environ[key]:
|
||||
return os.environ[key]
|
||||
msg = f'Missing key "{key}" in load(secrets_map)'
|
||||
raise KeyError(msg)
|
||||
return None
|
||||
|
||||
if (
|
||||
value.get("lc") == 1
|
||||
|
Reference in New Issue
Block a user