Browse Source
[commands] Fix _HelpCommandImpl.clean_params popitem
pull/6783/head
Stella
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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 |
|
|
|