diff --git a/modules/account_statement_sepa/account.py b/modules/account_statement_sepa/account.py index e5b1417739..0235152a41 100644 --- a/modules/account_statement_sepa/account.py +++ b/modules/account_statement_sepa/account.py @@ -73,7 +73,8 @@ class StatementImport(metaclass=PoolMeta): return statement def _camt_amount(self, entry, detail=None): - if detail is not None: + if (detail is not None + and detail.find('./{*}AmtDtls/{*}TxAmt/{*}Amt') is not None): amount = Decimal(detail.findtext('./{*}AmtDtls/{*}TxAmt/{*}Amt')) else: amount = Decimal(entry.findtext('./{*}Amt'))