mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
[Core] Fix DictConverterer error handling format (#2776)
This commit is contained in:
parent
cc927248f0
commit
804d6eecea
@ -184,7 +184,7 @@ class DictConverter(dpy_commands.Converter):
|
|||||||
|
|
||||||
for key in iterator:
|
for key in iterator:
|
||||||
if self.expected_keys and key not in self.expected_keys:
|
if self.expected_keys and key not in self.expected_keys:
|
||||||
raise BadArgument(_("Unexpected key {key}").format(key))
|
raise BadArgument(_("Unexpected key {key}").format(key=key))
|
||||||
|
|
||||||
ret[key] = next(iterator)
|
ret[key] = next(iterator)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user