aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/commands.py2
1 files changed, 1 insertions, 1 deletions
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: