From 0a7e2f7c2f4c4f308450318117b1e69e3a5bae5e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 4 Sep 2020 08:47:07 -0400 Subject: [commands] BadBooleanArgument -> BadBoolArgument --- discord/ext/commands/core.py | 2 +- discord/ext/commands/errors.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'discord/ext') diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index d91a6143..8e3ad3f2 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -107,7 +107,7 @@ def _convert_to_bool(argument): elif lowered in ('no', 'n', 'false', 'f', '0', 'disable', 'off'): return False else: - raise BadBooleanArgument(lowered) + raise BadBoolArgument(lowered) class _CaseInsensitiveDict(dict): def __contains__(self, k): diff --git a/discord/ext/commands/errors.py b/discord/ext/commands/errors.py index 5c9274ce..6a9eb6af 100644 --- a/discord/ext/commands/errors.py +++ b/discord/ext/commands/errors.py @@ -53,7 +53,7 @@ __all__ = ( 'BadInviteArgument', 'EmojiNotFound', 'PartialEmojiConversionFailure', - 'BadBooleanArgument', + 'BadBoolArgument', 'MissingRole', 'BotMissingRole', 'MissingAnyRole', @@ -373,7 +373,7 @@ class PartialEmojiConversionFailure(BadArgument): self.argument = argument super().__init__('Couldn\'t convert "{}" to PartialEmoji.'.format(argument)) -class BadBooleanArgument(BadArgument): +class BadBoolArgument(BadArgument): """Exception raised when a boolean argument was not convertable. This inherits from :exc:`BadArgument` -- cgit v1.2.3