mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
Fixes issue calling commands that do not require a password, such as help
This commit is contained in:
parent
c5d3adcf32
commit
a516bce8c6
1 changed files with 5 additions and 1 deletions
|
@ -101,7 +101,11 @@ class Commands:
|
||||||
if password is None:
|
if password is None:
|
||||||
return
|
return
|
||||||
f = getattr(self, method)
|
f = getattr(self, method)
|
||||||
|
if cmd.requires_password:
|
||||||
result = f(*args, **{'password':password})
|
result = f(*args, **{'password':password})
|
||||||
|
else:
|
||||||
|
result = f(*args)
|
||||||
|
|
||||||
if self._callback:
|
if self._callback:
|
||||||
apply(self._callback, ())
|
apply(self._callback, ())
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Add table
Reference in a new issue