Fix install wizard

Used to pass the wallet as an argument to wallet methods.
This commit is contained in:
Neil Booth 2016-01-10 20:44:20 +09:00
parent cda92cd12c
commit 450ab76f78
1 changed files with 3 additions and 3 deletions

View File

@ -170,10 +170,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, (wallet, )), calls = []
(self, (wallet, ))]
if hasattr(wallet, 'plugin'): if hasattr(wallet, 'plugin'):
calls.insert(0, (wallet.plugin, (wallet, self))) calls.append((wallet.plugin, (wallet, self)))
calls.extend([(wallet, ()), (self, (wallet, ))])
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: