richardogoma / bitcoin-rate-etl

An ETL pipeline to ingest near-real time data of Bitcoin rates across major currencies (USD/GBP/EUR) from the CoinDesk Bitcoin Price Index API.
MIT License
0 stars 1 forks source link

Handle empty response from API #29

Open richardogoma opened 11 months ago

richardogoma commented 11 months ago
response = retrieve_rates(uri=api_url)
parsed_data = parse_dict(response)

In the __init__.py file, Raise httperror or sth in the requests.exceptions class if the response from the extract phase is an empty dict