Check a return is truthy before we decide it's an error (command.py)

This commit is contained in:
jesopo 2019-01-28 23:57:12 +00:00
parent ee1770cc08
commit 549332db38

View file

@ -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: