]> git.ipfire.org Git - thirdparty/python-fints.git/commit
Add a 'robust mode': A parse error during interpretation of a segment will be turned...
authorHenryk Plötz <henryk@ploetzli.ch>
Sun, 12 Aug 2018 12:25:46 +0000 (14:25 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Mon, 3 Dec 2018 18:34:29 +0000 (19:34 +0100)
commit43183dc605abbff6b9dd45d841aa58da2f27e694
treefe63aa1bce6f8d1b779ff4145ba7799dc2bbfdb1
parent51eb938ca46f0f94c2ea5f8ab3ae0e739810ce15
Add a 'robust mode': A parse error during interpretation of a segment will be turned into a Warning, and a generic object will be created.
Should guarantee that no exceptions are triggered during communication, even if there's a bug in the segment definitions. Downside: find_segments('FOO') might return instances that are not of subclass FOOx.
Compensation: Make all calls to find_segment type safe by requiring a specific subclass.
fints/client.py
fints/message.py
fints/parser.py
fints/segments/__init__.py
tests/conftest.py
tests/test_message_parser.py