tfix #1479 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit fbda9dac79944451de6b5ab701b3d426c905114d DIR parent 19ec56b92310103ebe0e1f72e5e63913bdfb139b HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 18 Oct 2015 12:36:04 +0200 fix #1479 Diffstat: M lib/wallet.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -769,9 +769,11 @@ class Abstract_Wallet(PrintError): dd.pop(addr) else: dd[addr] = l - self.txi.pop(tx_hash) - self.txo.pop(tx_hash) - + try: + self.txi.pop(tx_hash) + self.txo.pop(tx_hash) + except KeyErrror: + self.print_error("tx was not in history", tx_hash) def receive_tx_callback(self, tx_hash, tx, tx_height): self.add_transaction(tx_hash, tx)