Not all wallets have plugins
This commit is contained in:
parent
21bf5a8a84
commit
ff39333d32
|
@ -180,9 +180,10 @@ class WizardBase(PrintError):
|
||||||
self.print_error("action %s on %s" % (action, wallet.basename()))
|
self.print_error("action %s on %s" % (action, wallet.basename()))
|
||||||
# Run the action on the wallet plugin, if any, then the
|
# Run the action on the wallet plugin, if any, then the
|
||||||
# wallet and finally ourselves
|
# wallet and finally ourselves
|
||||||
calls = [(wallet.plugin, (wallet, self)),
|
calls = [(wallet, (wallet, )),
|
||||||
(wallet, (wallet, )),
|
|
||||||
(self, (wallet, ))]
|
(self, (wallet, ))]
|
||||||
|
if hasattr(wallet, 'plugin'):
|
||||||
|
calls.insert(0, (wallet.plugin, (wallet, self)))
|
||||||
calls = [(getattr(actor, action), args) for (actor, args) in calls
|
calls = [(getattr(actor, action), args) for (actor, args) in calls
|
||||||
if hasattr(actor, action)]
|
if hasattr(actor, action)]
|
||||||
if not calls:
|
if not calls:
|
||||||
|
|
Loading…
Reference in New Issue