mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
explicit fetch data instead of getattr
This commit is contained in:
@@ -85,10 +85,7 @@ class ProviderRegistry:
|
||||
Fetcher_ = self.get_fetcher(provider, query_params)
|
||||
|
||||
try:
|
||||
# TODO: Check if we really need to pass this "fetch_data"
|
||||
return getattr(Fetcher_, "fetch_data")(
|
||||
query_params, extra_params, filtered_credentials
|
||||
)
|
||||
return Fetcher_.fetch_data(query_params, extra_params, filtered_credentials)
|
||||
except Exception as e:
|
||||
raise ProviderError(e) from e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user