diff options
-rw-r--r-- | openbb_platform/providers/econdb/openbb_econdb/utils/helpers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbb_platform/providers/econdb/openbb_econdb/utils/helpers.py b/openbb_platform/providers/econdb/openbb_econdb/utils/helpers.py index ac527ff75ab..b444c9e9f87 100644 --- a/openbb_platform/providers/econdb/openbb_econdb/utils/helpers.py +++ b/openbb_platform/providers/econdb/openbb_econdb/utils/helpers.py @@ -400,7 +400,7 @@ async def create_token(use_cache: bool = True) -> str: + " Your IP address may have been flagged by Cloudflare." ) from e - response: Union[dict, List[dict]] + response: Union[dict, List[dict]] = {} url = "https://www.econdb.com/user/create_token/?reset=0" if use_cache: cache_dir = f"{get_user_cache_directory()}/http/econdb_indicators_temp_token" @@ -426,7 +426,7 @@ async def download_indicators(use_cache: bool = True) -> DataFrame: """Response callback to read the CSV response.""" return await response.text() - response: Union[dict, List[dict]] + response: Union[dict, List[dict]] = {} if use_cache is True: cache_dir = f"{get_user_cache_directory()}/http/econdb_indicators" async with CachedSession( @@ -481,7 +481,7 @@ async def get_context( use_cache: bool = True, ) -> Union[dict, List[dict]]: """Get the data for a symbol and a list of countries.""" - response: Union[dict, List[dict]] + response: Union[dict, List[dict]] = {} urls = [] countries = countries if isinstance(countries, list) else countries.split(",") # Multiple countries could be passed in a single request, but the request is prone |