From f1e224f2228d652ce7870161346f59cfc22896ee Mon Sep 17 00:00:00 2001 From: Red S Date: Tue, 1 Oct 2024 23:58:08 -0700 Subject: [PATCH] fix: '' in securities bug --- beancount_reds_importers/libtransactionbuilder/investments.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beancount_reds_importers/libtransactionbuilder/investments.py b/beancount_reds_importers/libtransactionbuilder/investments.py index aa20633..38d1986 100644 --- a/beancount_reds_importers/libtransactionbuilder/investments.py +++ b/beancount_reds_importers/libtransactionbuilder/investments.py @@ -163,7 +163,8 @@ def get_ticker_info_from_id(self, security_id): except IndexError: print(f"Error: fund info not found for {security_id}", file=sys.stderr) securities = self.get_security_list() - securities.remove('') + if '' in securities: + securities.remove('') securities_missing = list(securities) for s in securities: for k in self.funds_db: