diff options
author | 2020-04-09 08:28:44 +0300 | |
---|---|---|
committer | 2020-04-09 08:28:44 +0300 | |
commit | 816e76fe8c5e5231cdc85ab974294c1d2fb4a87c (patch) | |
tree | 9cddd7684e096c482b2131a84aeef6cc11cb1c9e | |
parent | (Scheduler): Move reason to end of log text to avoid truncating keys. (diff) |
(Scheduler): Replaced `infraction['reason']` with `reason` variable using in `end_msg`.
-rw-r--r-- | bot/cogs/moderation/scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/scheduler.py b/bot/cogs/moderation/scheduler.py index 3352806e7..b238cf4e2 100644 --- a/bot/cogs/moderation/scheduler.py +++ b/bot/cogs/moderation/scheduler.py @@ -128,7 +128,7 @@ class InfractionScheduler(Scheduler): f"Infraction #{id_} actor is bot; including the reason in the confirmation message." ) - end_msg = f" (reason: {textwrap.shorten(infraction['reason'], width=1500, placeholder='...')})" + end_msg = f" (reason: {textwrap.shorten(reason, width=1500, placeholder='...')})" elif ctx.channel.id not in STAFF_CHANNELS: log.trace( f"Infraction #{id_} context is not in a staff channel; omitting infraction count." |