mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
[commands] Fix _HelpCommandImpl.clean_params popitem
This commit is contained in:
@ -216,8 +216,8 @@ class _HelpCommandImpl(Command):
|
||||
def clean_params(self):
|
||||
result = self.params.copy()
|
||||
try:
|
||||
result.popitem(last=False)
|
||||
except Exception:
|
||||
del result[next(iter(result))]
|
||||
except StopIteration:
|
||||
raise ValueError('Missing context parameter') from None
|
||||
else:
|
||||
return result
|
||||
|
Reference in New Issue
Block a user