fix #745
authorThomasV <thomasv@gitorious>
Mon, 30 Jun 2014 15:59:36 +0000 (17:59 +0200)
committerThomasV <thomasv@gitorious>
Mon, 30 Jun 2014 15:59:36 +0000 (17:59 +0200)
lib/wallet.py

index 8921e44..2a9c237 100644 (file)
@@ -1146,7 +1146,8 @@ class Deterministic_Wallet(Abstract_Wallet):
             account = self.default_account()
         address = account.create_new_address(for_change)
         self.history[address] = []
-        self.synchronizer.add(address)
+        if self.synchronizer:
+            self.synchronizer.add(address)
         self.save_accounts()
         return address