tNot all wallets have plugins - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit ff39333d32f9b580d105a0ea78b465307b353b93
DIR parent 21bf5a8a84316b2f71540c95e3a66205e2c3d12a
HTML Author: Neil Booth <kyuupichan@gmail.com>
Date: Sat, 2 Jan 2016 20:47:04 +0900
Not all wallets have plugins
Diffstat:
M lib/wizard.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
DIR diff --git a/lib/wizard.py b/lib/wizard.py
t@@ -180,9 +180,10 @@ class WizardBase(PrintError):
self.print_error("action %s on %s" % (action, wallet.basename()))
# Run the action on the wallet plugin, if any, then the
# wallet and finally ourselves
- calls = [(wallet.plugin, (wallet, self)),
- (wallet, (wallet, )),
+ calls = [(wallet, (wallet, )),
(self, (wallet, ))]
+ if hasattr(wallet, 'plugin'):
+ calls.insert(0, (wallet.plugin, (wallet, self)))
calls = [(getattr(actor, action), args) for (actor, args) in calls
if hasattr(actor, action)]
if not calls: