Skip to content

Skip null/None closed price when get_price_series#79

Open
Zhong-z wants to merge 3 commits intobeancount:masterfrom
Zhong-z:master
Open

Skip null/None closed price when get_price_series#79
Zhong-z wants to merge 3 commits intobeancount:masterfrom
Zhong-z:master

Conversation

@Zhong-z
Copy link

@Zhong-z Zhong-z commented Sep 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant