From a498ed979b8c233655fa34231de8c5aff2f5c4fb Mon Sep 17 00:00:00 2001 From: Andrej A Antonov Date: Thu, 21 Feb 2013 14:44:53 +0400 Subject: [PATCH] fixed bug: failed command ``history`` if ``wallet.get_tx_history()`` is empty --- electrum | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum b/electrum index b1e707b5..9f89e22c 100755 --- a/electrum +++ b/electrum @@ -563,6 +563,7 @@ if __name__ == '__main__': if cmd == 'history': import datetime + balance = 0 for item in wallet.get_tx_history(): tx_hash, conf, is_mine, value, fee, balance, timestamp = item try: