From 51b80ba5a001dee58c941947c0fcfb447fab21c2 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Wed, 2 Oct 2013 10:56:55 +0200 Subject: [PATCH] [FIX] Sepa type in abnamro statement file has varying case [FIX] Missing substitution variable --- account_banking_nl_abnamro/abnamro.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/account_banking_nl_abnamro/abnamro.py b/account_banking_nl_abnamro/abnamro.py index 4e759c6d9..977383e00 100644 --- a/account_banking_nl_abnamro/abnamro.py +++ b/account_banking_nl_abnamro/abnamro.py @@ -2,7 +2,7 @@ ############################################################################## # # Copyright (C) 2009 EduSense BV () -# 2011 Therp BV () +# 2011 - 2013 Therp BV () # # All Rights Reserved # @@ -256,9 +256,9 @@ class transaction(models.mem_bank_transaction): if self.transfer_type == 'SEPA': sepa_dict = get_sepa_dict(''.join(fields)) - sepa_type = sepa_dict.get('TRTP') - if sepa_type != 'SEPA OVERBOEKING': - raise ValueError,_('Sepa transaction type %s not handled yet') + sepa_type = sepa_dict.get('TRTP') or '' + if sepa_type.upper() != 'SEPA OVERBOEKING': + raise ValueError, _('Sepa transaction type %s not handled yet') % sepa_type self.remote_account = sepa_dict.get('IBAN',False) self.remote_bank_bic = sepa_dict.get('BIC', False) self.remote_owner = sepa_dict.get('NAME', False)