git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e3bb6f8
)
fix: command line with no password
author
thomasv
<thomasv@gitorious>
Wed, 13 Mar 2013 13:29:50 +0000 (14:29 +0100)
committer
thomasv
<thomasv@gitorious>
Wed, 13 Mar 2013 13:29:50 +0000 (14:29 +0100)
lib/commands.py
patch
|
blob
|
history
diff --git
a/lib/commands.py
b/lib/commands.py
index
c8ac4ae
..
85c53ac
100644
(file)
--- 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)