From 7dc3d95458e9aeb2e3b71047af2f83786d075f9f Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 14 Nov 2017 12:46:13 +0100 Subject: fix unpredictable parse error of transaction_details --- transaction_details.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'transaction_details.py') 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 = {} -- cgit v1.2.1