commit ff39333d32f9b580d105a0ea78b465307b353b93
parent 21bf5a8a84316b2f71540c95e3a66205e2c3d12a
Author: Neil Booth <kyuupichan@gmail.com>
Date: Sat, 2 Jan 2016 20:47:04 +0900
Not all wallets have plugins
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/wizard.py b/lib/wizard.py
@@ -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: