From f3440f5a20bee6c64f738ffc32010e94ad8c6dab Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 21 Feb 2018 21:09:07 +0100 Subject: [PATCH] fix 3954 --- lib/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index e12b401f5..67e1493b8 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -1039,7 +1039,8 @@ class Abstract_Wallet(PrintError): out.append(item) # add summary if out: - start_balance = out[0]['balance'].value - out[0]['value'].value + b, v = out[0]['balance'].value, out[0]['value'].value + start_balance = None if b is None or v is None else b - v end_balance = out[-1]['balance'].value if from_timestamp is not None and to_timestamp is not None: start_date = timestamp_to_datetime(from_timestamp)