Merge pull request #2644 from jrjackso/fix-commands
Fixes issue calling commands that do not require a password, such as help
This commit is contained in:
commit
cefb1c9bc0
|
@ -101,7 +101,11 @@ class Commands:
|
|||
if password is None:
|
||||
return
|
||||
f = getattr(self, method)
|
||||
if cmd.requires_password:
|
||||
result = f(*args, **{'password':password})
|
||||
else:
|
||||
result = f(*args)
|
||||
|
||||
if self._callback:
|
||||
apply(self._callback, ())
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue