diff --git a/beancount_reds_importers/libreader/ofxreader.py b/beancount_reds_importers/libreader/ofxreader.py index 76ea929..7b8bf9d 100644 --- a/beancount_reds_importers/libreader/ofxreader.py +++ b/beancount_reds_importers/libreader/ofxreader.py @@ -124,7 +124,7 @@ def get_smart_date(self): def vd(x): return x if x else datetime.date.min return_date = max(*[vd(x) for x in dates]) - print("Smart date computation. Dates were: ", dates) + # print("Smart date computation. Dates were: ", dates) return return_date diff --git a/beancount_reds_importers/libtransactionbuilder/investments.py b/beancount_reds_importers/libtransactionbuilder/investments.py index 0fa58ba..06377a8 100644 --- a/beancount_reds_importers/libtransactionbuilder/investments.py +++ b/beancount_reds_importers/libtransactionbuilder/investments.py @@ -115,7 +115,7 @@ def build_account_map(self): "capgainsd_lt": self.config['capgainsd_lt'], "capgainsd_st": self.config['capgainsd_st'], "income": self.config['interest'], - "invexpense": self.config['invexpense'], + "invexpense": self.config.get('invexpense', "ACCOUNT_NOT_CONFIGURED:INVEXPENSE"), } if 'transfer' in self.config: