mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-27 03:33:24 +00:00
fix
This commit is contained in:
@@ -51,9 +51,9 @@ class QueryExecutor:
|
||||
credential_value = credentials.get(c)
|
||||
if c not in credentials or credential_value is None:
|
||||
if require_credentials:
|
||||
raise ProviderError(
|
||||
f"Missing credential '{c}', check {provider.website}."
|
||||
)
|
||||
website = provider.website or ""
|
||||
extra_msg = f"Check {website} to get it." if website else ""
|
||||
raise ProviderError(f"Missing credential '{c}'. {extra_msg}")
|
||||
else:
|
||||
filtered_credentials[c] = credential_value.get_secret_value()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user