From c3dc2d52846702c0a0341999ac9043cddbe9715e Mon Sep 17 00:00:00 2001 From: thomasv Date: Wed, 13 Mar 2013 14:29:50 +0100 Subject: [PATCH] fix: command line with no password --- lib/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands.py b/lib/commands.py index c8ac4ae1d..85c53ac8c 100644 --- a/lib/commands.py +++ b/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)