aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-02-25 04:24:20 +0100
committerGravatar Numerlor <[email protected]>2021-02-25 04:24:42 +0100
commitd56b01ad1d9d2b52603255978061c95a2487505a (patch)
treeb71fa99034793e4133162633e326e570c0680738
parentSend command help for `BadUnionArgument`s (diff)
Close coroutine to prevent `RuntimeWarning`s
-rw-r--r--bot/exts/backend/error_handler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py
index 92414e5d2..9cb54cdab 100644
--- a/bot/exts/backend/error_handler.py
+++ b/bot/exts/backend/error_handler.py
@@ -244,6 +244,7 @@ class ErrorHandler(Cog):
elif isinstance(e, errors.ArgumentParsingError):
embed = self._get_error_embed("Argument parsing error", str(e))
await ctx.send(embed=embed)
+ prepared_help_command.close()
self.bot.stats.incr("errors.argument_parsing_error")
else:
embed = self._get_error_embed(