Auto-update: Wed Jul 24 23:58:49 PDT 2024

This commit is contained in:
sanj 2024-07-24 23:58:49 -07:00
parent 3dbf0f3ae8
commit cef2aaf910

View file

@ -49,7 +49,7 @@ class Configuration(BaseModel):
if secrets_path: if secrets_path:
with secrets_path.open('r') as file: with secrets_path.open('r') as file:
secrets_data = yaml.safe_load(file) secrets_data = yaml.safe_load(file)
info(f"Loaded secrets data from {secrets_path}") # info(f"Loaded secrets data from {secrets_path}")
if isinstance(config_data, list): if isinstance(config_data, list):
for item in config_data: for item in config_data:
if isinstance(item, dict): if isinstance(item, dict):
@ -182,7 +182,7 @@ class APIConfig(BaseModel):
try: try:
with open(secrets_path, 'r') as file: with open(secrets_path, 'r') as file:
secrets_data = yaml.safe_load(file) secrets_data = yaml.safe_load(file)
info(f"Loaded secrets: {secrets_data}") # info(f"Loaded secrets: {secrets_data}")
except FileNotFoundError: except FileNotFoundError:
err(f"Secrets file not found: {secrets_path}") err(f"Secrets file not found: {secrets_path}")
secrets_data = {} secrets_data = {}