From f6898e9d463c3c4321c9a811a9df71f0a0116659 Mon Sep 17 00:00:00 2001 From: david wulliamoz Date: Tue, 18 Apr 2017 17:24:46 +0200 Subject: [PATCH] allow camt054 to be parsed Fix typo --- account_bank_statement_import_camt/camt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_bank_statement_import_camt/camt.py b/account_bank_statement_import_camt/camt.py index 2ea3c00..ec0cf29 100644 --- a/account_bank_statement_import_camt/camt.py +++ b/account_bank_statement_import_camt/camt.py @@ -217,10 +217,12 @@ class CamtParser(object): ) if not re_camt.search(ns): raise ValueError('no camt: ' + ns) - # Check wether version 052 or 053: + # Check wether version 052 ,053 or 054: re_camt_version = re.compile( - r'(^urn:iso:std:iso:20022:tech:xsd:camt.053.' + r'(^urn:iso:std:iso:20022:tech:xsd:camt.054.' + r'|^urn:iso:std:iso:20022:tech:xsd:camt.053.' r'|^urn:iso:std:iso:20022:tech:xsd:camt.052.' + r'|^ISO:camt.054.' r'|^ISO:camt.053.' r'|^ISO:camt.052.)' )