[commands] Add subclasses of BadArgument for converters

This commit is contained in:
Simon Beal authored and GitHub committed 2020-09-04 08:45:29 -04:00
1 parent 33fb13043c
commit 6ebd2e13a1
4 files changed
+281 -17

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ def _convert_to_bool(argument):
elif lowered in ('no', 'n', 'false', 'f', '0', 'disable', 'off'):
return False
else:
raise BadArgument(lowered + ' is not a recognised boolean option')
raise BadBooleanArgument(lowered)
class _CaseInsensitiveDict(dict):
def __contains__(self, k):