mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-27 03:33:24 +00:00
improve missing api key msg
This commit is contained in:
@@ -51,7 +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}'.")
|
||||
raise ProviderError(
|
||||
f"Missing credential '{c}', check {provider.website}."
|
||||
)
|
||||
else:
|
||||
filtered_credentials[c] = credential_value.get_secret_value()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user