diff --git a/beanprice/sources/yahoo.py b/beanprice/sources/yahoo.py index 1dd1c71..dea03a2 100644 --- a/beanprice/sources/yahoo.py +++ b/beanprice/sources/yahoo.py @@ -100,7 +100,7 @@ def get_price_series(ticker: str, timestamp_array = result['timestamp'] close_array = result['indicators']['quote'][0]['close'] series = [(datetime.fromtimestamp(timestamp, tz=tzone), Decimal(price)) - for timestamp, price in zip(timestamp_array, close_array)] + for timestamp, price in zip(timestamp_array, close_array) if price is not None] currency = result['meta']['currency'] return series, currency