aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/help.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py
index 9b4dbf9a..4dd1e745 100644
--- a/discord/ext/commands/help.py
+++ b/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