beancount / beanprice

Daily price quotes fetching library for plain-text accounting
GNU General Public License v2.0
66 stars 37 forks source link

Skip null/None closed price when get_price_series #79

Open Zhong-z opened 1 year ago

Zhong-z commented 1 year ago

https://query1.finance.yahoo.com/v8/finance/chart/BGBL.ax

this ticker has closed price null for some dates/timestamps, resulting in TypeError: conversion from NoneType to Decimal is not supported when pulling the price.

Added if price in the list comprehension to skip null prices. Also fixed lint complains