account_banking_nl_ing_mt940 parse failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Banking Addons |
Fix Committed
|
Undecided
|
Holger Brunn (Therp) |
Bug Description
I tried out account_
Got the following error when it parsed a .940 file that I downloaded from my ing.nl portal:
File "/var/lib/
self.
AttributeError: 'NoneType' object has no attribute 'groupdict'
I think the regex needs a modification, like:
tag_61_regex = re.compile(
These are typical :61: lines:
:61:131210D90,75NDV MARF
:61:140328C302,
Related branches
- Stefan Rijnhart (Opener): Approve
- Yannick Vaucher @ Camptocamp: Approve (code review, no test)
-
Diff: 35 lines (+4/-3)2 files modifiedaccount_banking_nl_ing_mt940/__openerp__.py (+1/-1)
account_banking_nl_ing_mt940/account_banking_nl_ing_mt940.py (+3/-2)
Changed in banking-addons: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Holger Brunn (Therp) (hbrunn) |
Thanks for the analysis! Your examples only match with an additional (optional?) space in the expression before the reference. We'll compare with our own data.
'^(?P<date> \d{6})( ?P<sign> [CD])(? P<amount> \d+,\d{ 2})N(?P< type>\w{ 2}) (?P<reference> \w{1,16} )'