aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-28 23:57:12 +0000
committerGravatar jesopo2019-01-28 23:57:12 +0000
commit549332db38b862bbfbf88753c4989b285d6605ef (patch)
tree245a05dfcc8b80f7f437574b1611b63f2b9960ac
parentTypo, `force_success` -> `force_success = False` (commands.py) (diff)
signature
Check a return is truthy before we decide it's an error (command.py)
-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: