mt940: payer is not always available

This commit is contained in:
Claudio Luck
2017-05-26 00:55:41 +02:00
committed by Raphael Michel
parent ebabd20d09
commit 3c762adbf4

View File

@@ -84,7 +84,7 @@ def _get_unknown_transactions(event: Event, job: BankImportJob, data: list):
amount = Decimal("0.00")
trans = BankTransaction(event=event, import_job=job,
payer=row['payer'],
payer=row.get('payer', ''),
reference=row['reference'],
amount=amount,
date=row['date'])