From b06fee294ee0fe9d2afc4d621383aa7917797665 Mon Sep 17 00:00:00 2001 From: TheTechRobo <52163910+TheTechRobo@users.noreply.github.com> Date: Tue, 7 Dec 2021 18:16:45 -0500 Subject: [PATCH] fix more error handling. also i know the repo is dead shut up --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index c8af1d3..0dab70e 100644 --- a/bot.py +++ b/bot.py @@ -158,7 +158,7 @@ async def on_command_error(ctx, error): elif isinstance(error, hypierror.InvalidPlayer): message = _("This seems to be an invalid player - it doesn't have an entry on Mojang's API.\nTry running {PREFIX}[command] {uuid} False to search by UUID instead. Run {PREFIX}help bedwars for more info.").format(PREFIX=PREFIX, uuid=error) elif isinstance(error, commands.errors.CommandNotFound): - message = _("command not found. Try {PREFIX}help for a list!") + message = _("command not found. Try {PREFIX}help for a list!").format(PREFIX=PREFIX) else: message = "Unknown error !" em = discord.Embed(title=_("⚠️ Oops! ⚠️"), description=message)