From de199f0bca7a0e1717d613bf92bc2a6389656cf1 Mon Sep 17 00:00:00 2001 From: Red S Date: Mon, 23 Sep 2024 21:46:08 -0700 Subject: [PATCH] fix: remove blank ticker, common with brokerage-bank combos --- 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 12ecd63..aa20633 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_missing = [s for s in securities] + securities.remove('') + securities_missing = list(securities) for s in securities: for k in self.funds_db: if s in k: