Browse Source

[commands] Fix _HelpCommandImpl.clean_params popitem

pull/6783/head
Stella 4 years ago
committed by GitHub
parent
commit
91c473db57
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/ext/commands/help.py

4
discord/ext/commands/help.py

@ -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

Loading…
Cancel
Save