aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-26 12:19:50 +0100
committerGravatar jesopo2019-09-26 12:19:50 +0100
commit30588da3a76d3e9d24c3e41e37bb00ae78bc9c81 (patch)
treeeb115665b012b8d528d7a5e6eae3e6e22aa54a8a /modules
parent'require-mode'/'require-access' -> 'require_mode'/'require_access' (diff)
signature
`returned` is now a tuple; we want `message`
Diffstat (limited to 'modules')
-rw-r--r--modules/commands/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py
index e01adb8b..1a3587b0 100644
--- a/modules/commands/__init__.py
+++ b/modules/commands/__init__.py
@@ -151,7 +151,7 @@ class Module(ModuleManager.BaseModule):
force_success = True
break
elif type == utils.consts.PERMISSION_ERROR:
- error = returned
+ error = message
if hard_fail:
return False, error