Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rabo MT940 extended error. #5

Closed
spoetnik opened this issue Apr 21, 2015 · 4 comments
Closed

Rabo MT940 extended error. #5

spoetnik opened this issue Apr 21, 2015 · 4 comments

Comments

@spoetnik
Copy link

Parsing Rabo MT940 Structured is giving an exeption:

in handle_transaction_data
    ''', data, re.VERBOSE).groupdict()
AttributeError: 'NoneType' object has no attribute 'groupdict'

https://github.com/WoLpH/mt940/blob/master/mt940/parser.py#L100

See this gist for the file : https://gist.github.com/spoetnik/046c2e9dd4242d2603ad

@wolph
Copy link
Owner

wolph commented Apr 23, 2015

Just a little update here, I'm working on handling this but I'm having a bit of trouble deciphering the rabobank format. Perhaps the jejik-mt940 library will help a bit though...

Thanks for the file, helps a lot with testing :)

@spoetnik
Copy link
Author

Cool thanks. I wish I was so Python-savvy I could help.
Here are the Rabobank specs: https://www.rabobank.nl/images/formaatbeschrijving_swift_bt940s_1_0_nl_rib_29539296.pdf
Have you seen this Ruby parser? https://github.com/railslove/cmxl
Looks like custom MT940 definitions could be handled by overriding a class...

Thanks for looking into this!

@wolph
Copy link
Owner

wolph commented Apr 24, 2015

This standard is beyond crappy... that is, there are many standards and apparently most of the banks are not complying with the standards.... A lot more painful than I'd hoped but I've made it a bit more versatile.

Now it supports any sta file I could find (thanks to your links I now have 32 files which are supported) but it won't have all details for every file. Let me know if you need more help :)

@wolph wolph closed this as completed Apr 24, 2015
@spoetnik
Copy link
Author

Thanks! I will test it! So far it's looking good. Update is on pypi already. Sweeeet!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants