This commit is contained in:
Diogo Sousa
2023-11-23 13:13:25 +00:00
parent 30ac1fbafa
commit 0b8e150e93

View File

@@ -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()