From de1a0f56907ccdd6afbfed258fa70d60305406c7 Mon Sep 17 00:00:00 2001 From: shunyata Date: Thu, 12 Dec 2013 17:36:17 -0500 Subject: [PATCH] wallet.synchronizer should exist at construction. The `self.synchronizer` attribute is accessed before it ever exists when using `electrum importprivkey` on the command line. This change sets it to None, which is a valid state, in the wallet's constructor. --- lib/wallet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/wallet.py b/lib/wallet.py index 104a3c54..55ef493f 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -186,6 +186,8 @@ class Wallet: print msg sys.exit(1) + # This attribute is set when wallet.start_threads is called. + self.synchronizer = None self.load_accounts()