Check a return is truthy before we decide it's an error (command.py)
This commit is contained in:
parent
ee1770cc08
commit
549332db38
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
elif returned == utils.consts.PERMISSION_FORCE_SUCCESS:
|
elif returned == utils.consts.PERMISSION_FORCE_SUCCESS:
|
||||||
force_success = True
|
force_success = True
|
||||||
break
|
break
|
||||||
else:
|
elif returned:
|
||||||
# error message
|
# error message
|
||||||
error = returned
|
error = returned
|
||||||
if error and not force_success:
|
if error and not force_success:
|
||||||
|
|
Loading…
Reference in a new issue