aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-30 09:44:36 +0300
committerGravatar ks129 <[email protected]>2020-05-30 09:44:36 +0300
commit136ef112999b9387f04c3e0b800a3008ac07934f (patch)
treef0a81498e08b8b3947ae7e3c9f1c12692da8da37
parentScheduler: Move inline f-string if-else statement to normal if statement (diff)
Scheduler: Remove invalid comment
-rw-r--r--bot/cogs/moderation/scheduler.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/bot/cogs/moderation/scheduler.py b/bot/cogs/moderation/scheduler.py
index 80a58484c..7e8455740 100644
--- a/bot/cogs/moderation/scheduler.py
+++ b/bot/cogs/moderation/scheduler.py
@@ -84,7 +84,6 @@ class InfractionScheduler(Scheduler):
"""Apply an infraction to the user, log the infraction, and optionally notify the user."""
infr_type = infraction["type"]
icon = utils.INFRACTION_ICONS[infr_type][0]
- # Truncate reason when it's too long to avoid raising error on sending ModLog entry
reason = infraction["reason"]
expiry = time.format_infraction_with_duration(infraction["expires_at"])
id_ = infraction['id']