From 0c64708ed660024f80c7f615ff95421fe353aec5 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Battiston Date: Sun, 28 Aug 2022 19:15:13 -0300 Subject: Remove unnecessary loggin --- bot/exts/moderation/infraction/infractions.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bot/exts/moderation/infraction/infractions.py b/bot/exts/moderation/infraction/infractions.py index 05cc74a03..2a325da77 100644 --- a/bot/exts/moderation/infraction/infractions.py +++ b/bot/exts/moderation/infraction/infractions.py @@ -125,8 +125,6 @@ class Infractions(InfractionScheduler, commands.Cog): infraction = await self.apply_ban(ctx, user, reason, duration_or_expiry=duration) if not infraction or not infraction.get("id"): # Ban was unsuccessful, quit early. - await ctx.send(":x: Failed to apply ban.") - log.error("Failed to apply ban to user %d", user.id) return # Calling commands directly skips discord.py's convertors, so we need to convert args manually. -- cgit v1.2.3