diff options
| author | 2019-01-28 23:57:12 +0000 | |
|---|---|---|
| committer | 2019-01-28 23:57:12 +0000 | |
| commit | 549332db38b862bbfbf88753c4989b285d6605ef (patch) | |
| tree | 245a05dfcc8b80f7f437574b1611b63f2b9960ac /modules | |
| parent | Typo, `force_success` -> `force_success = False` (commands.py) (diff) | |
| signature | ||
Check a return is truthy before we decide it's an error (command.py)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/commands.py | 2 |
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: |
