Well, this is what ING calls MT940 unstructured, and the parser can't make anything out of that.
If you replace the offending line with
if current_codeword:
subfields[current_codeword].append(word)
it shouldn't error out anymore, but you won't be happy with the result. Without the structured description, you'll get the other party's account data in the comment and no matching will be done.
Well, this is what ING calls MT940 unstructured, and the parser can't make anything out of that.
If you replace the offending line with
if current_codeword: current_ codeword] .append( word)
subfields[
it shouldn't error out anymore, but you won't be happy with the result. Without the structured description, you'll get the other party's account data in the comment and no matching will be done.