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: