From 549332db38b862bbfbf88753c4989b285d6605ef Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 28 Jan 2019 23:57:12 +0000 Subject: [PATCH] Check a return is truthy before we decide it's an error (command.py) --- modules/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/commands.py b/modules/commands.py index 282b65d7..1b952fff 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -183,7 +183,7 @@ class Module(ModuleManager.BaseModule): elif returned == utils.consts.PERMISSION_FORCE_SUCCESS: force_success = True break - else: + elif returned: # error message error = returned if error and not force_success: