mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
improve warning detail
This commit is contained in:
@@ -53,8 +53,9 @@ class Query:
|
||||
if provider_name in providers:
|
||||
filtered[k] = v
|
||||
else:
|
||||
available = ", ".join(providers)
|
||||
warnings.warn(
|
||||
message=f"Parameter '{k}' is not supported by {provider_name}.",
|
||||
message=f"Parameter '{k}' is not supported by {provider_name}. Available for: {available}.",
|
||||
category=OpenBBWarning,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user