From a516bce8c6eda1ae4675a90c62b532c8a18d5820 Mon Sep 17 00:00:00 2001 From: Jason Jackson Date: Fri, 28 Jul 2017 08:04:32 -0400 Subject: [PATCH] Fixes issue calling commands that do not require a password, such as help --- lib/commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/commands.py b/lib/commands.py index e0552762..56a3956d 100644 --- a/lib/commands.py +++ b/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