Browse Source

Merge pull request #2644 from jrjackso/fix-commands

Fixes issue calling commands that do not require a password, such as help
2.9.x
ThomasV 8 years ago
committed by GitHub
parent
commit
cefb1c9bc0
  1. 6
      lib/commands.py

6
lib/commands.py

@ -101,7 +101,11 @@ class Commands:
if password is None:
return
f = getattr(self, method)
result = f(*args, **{'password':password})
if cmd.requires_password:
result = f(*args, **{'password':password})
else:
result = f(*args)
if self._callback:
apply(self._callback, ())
return result

Loading…
Cancel
Save