mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
fix: command line with no password
This commit is contained in:
parent
e3bb6f8879
commit
c3dc2d5284
1 changed files with 2 additions and 1 deletions
|
@ -82,9 +82,10 @@ class Commands:
|
||||||
self.wallet = wallet
|
self.wallet = wallet
|
||||||
self.interface = interface
|
self.interface = interface
|
||||||
self._callback = callback
|
self._callback = callback
|
||||||
|
self.password = None
|
||||||
|
|
||||||
def _run(self, method, args, password_getter):
|
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,())
|
self.password = apply(password_getter,())
|
||||||
f = eval('self.'+method)
|
f = eval('self.'+method)
|
||||||
result = apply(f,args)
|
result = apply(f,args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue