mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-07 09:52:13 +00:00
Update helpers.py
This commit is contained in:
@@ -58,6 +58,8 @@ def get_data(url: str, **kwargs: Any) -> Union[list, dict]:
|
||||
r: Union[requests.Response, BasicResponse] = helpers.make_request(url, **kwargs)
|
||||
except SSLError:
|
||||
r = request(url)
|
||||
if r.status_code == 404:
|
||||
raise RuntimeError("Alpha Vantage endpoint doesn't exist")
|
||||
|
||||
data = r.json()
|
||||
if "Information" in data:
|
||||
|
||||
Reference in New Issue
Block a user