Browse Source

fix: command line with no password

283
thomasv 12 years ago
parent
commit
c3dc2d5284
  1. 3
      lib/commands.py

3
lib/commands.py

@ -82,9 +82,10 @@ class Commands:
self.wallet = wallet
self.interface = interface
self._callback = callback
self.password = None
def _run(self, method, args, password_getter):
if method in protected_commands:
if method in protected_commands and self.wallet.use_encryption:
self.password = apply(password_getter,())
f = eval('self.'+method)
result = apply(f,args)

Loading…
Cancel
Save