From 2846dce6ea3aba2cda6bccc3cff32fcbec767efd Mon Sep 17 00:00:00 2001 From: Kowlin Date: Wed, 14 Nov 2018 23:35:56 +0100 Subject: [PATCH] [Mod] [p]modset: Fix KeyError (#2279) Co-authored-by: aikaterna <20862007+aikaterna@users.noreply.github.com> --- redbot/cogs/mod/mod.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/redbot/cogs/mod/mod.py b/redbot/cogs/mod/mod.py index 5160d2352..5a72d9159 100644 --- a/redbot/cogs/mod/mod.py +++ b/redbot/cogs/mod/mod.py @@ -311,13 +311,15 @@ class Mod(commands.Cog): if not cur_setting: await self.settings.guild(guild).reinvite_on_unban.set(True) await ctx.send( - _("Users unbanned with {command} will be reinvited.").format(f"{ctx.prefix}unban") + _("Users unbanned with {command} will be reinvited.").format( + command=f"{ctx.prefix}unban" + ) ) else: await self.settings.guild(guild).reinvite_on_unban.set(False) await ctx.send( _("Users unbanned with {command} will not be reinvited.").format( - f"{ctx.prefix}unban" + command=f"{ctx.prefix}unban" ) )