fix
authorthomasv <thomasv@gitorious>
Fri, 23 Nov 2012 16:11:32 +0000 (17:11 +0100)
committerthomasv <thomasv@gitorious>
Fri, 23 Nov 2012 16:11:32 +0000 (17:11 +0100)
lib/wallet.py

index 308c492..4fe3a86 100644 (file)
@@ -1079,7 +1079,7 @@ class Wallet:
                     return False
 
         # check that we are not "orphaning" a transaction
-        old_hist = self.history.get(addr)
+        old_hist = self.history.get(addr,[])
         if old_hist == ['*']: return True
 
         for tx_hash, height in old_hist: