diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2017-11-14 12:46:13 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2017-11-14 12:46:13 +0100 |
commit | 7dc3d95458e9aeb2e3b71047af2f83786d075f9f (patch) | |
tree | 9ad07d6a6bd6c68fad021ad46b9ef06b33688686 /transaction_details.py | |
parent | 48364b6e52414db2f104ab0d6817905051651898 (diff) | |
download | finanzstatus-7dc3d95458e9aeb2e3b71047af2f83786d075f9f.tar.gz finanzstatus-7dc3d95458e9aeb2e3b71047af2f83786d075f9f.zip |
fix unpredictable parse error of transaction_details
Diffstat (limited to 'transaction_details.py')
-rw-r--r-- | transaction_details.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transaction_details.py b/transaction_details.py index dec0ee7..baa6ef3 100644 --- a/transaction_details.py +++ b/transaction_details.py @@ -51,9 +51,9 @@ def parse_transaction_details(details): result[DETAIL_KEYS[key]] = value else: if key == '33': - result[DETAIL_KEYS['32']] += value + result[DETAIL_KEYS['32']] = (result[DETAIL_KEYS['32']] or '') + value elif key.startswith('2'): - result[DETAIL_KEYS['20']] += value + result[DETAIL_KEYS['20']] = (result[DETAIL_KEYS['20']] or '') + value else: raise ValueError('Found Key ?{}, which is not documented'.format(key)) post_result = {} |