diff options
author | 2021-03-08 11:56:05 -0800 | |
---|---|---|
committer | 2021-03-08 11:56:05 -0800 | |
commit | bf5efea00f7409e46c5add14bb01c983ff849f2e (patch) | |
tree | 6fc21110c43bc3d1c9b9bfafc4061171d316a432 | |
parent | Merge pull request #1453 from python-discord/ban-vs-pban (diff) |
Resolving KeyError on infractions that don't purge.
-rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index b48c1c19e..988fb7220 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -173,7 +173,7 @@ class InfractionScheduler: total = len(infractions) end_msg = f" (#{id_} ; {total} infraction{ngettext('', 's', total)} total)" - purge = infraction['purge'] + purge = infraction.get("purge", "") # Execute the necessary actions to apply the infraction on Discord. if action_coro: |