diff options
-rw-r--r-- | bot/decorators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/decorators.py b/bot/decorators.py index d8a9494d2..25d1b694d 100644 --- a/bot/decorators.py +++ b/bot/decorators.py @@ -165,9 +165,9 @@ def respect_role_hierarchy(target_arg: Union[int, str] = 0) -> Callable: try: target = args[target_arg] except IndexError: - log.error(f"Could not find target member argument at position {target_arg}") + raise ValueError(f"Could not find target argument at position {target_arg}") except TypeError: - log.error(f"Could not find target member kwarg with key {target_arg!r}") + raise ValueError(f"Could not find target kwarg with key {target_arg!r}") if not isinstance(target, Member): log.trace("The target is not a discord.Member; skipping role hierarchy check.") |