From 30588da3a76d3e9d24c3e41e37bb00ae78bc9c81 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 26 Sep 2019 12:19:50 +0100 Subject: [PATCH] `returned` is now a tuple; we want `message` --- modules/commands/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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