diff options
| author | 2022-08-19 13:17:04 -0400 | |
|---|---|---|
| committer | 2022-08-19 13:17:04 -0400 | |
| commit | bf0a5172857cb4a9027d68cd8d0b735565952ce4 (patch) | |
| tree | 6fb28e349d00f528ffc8aab8eac0861e7cd3a33b | |
| parent | fix: remove chance of empty string overriding database infraction reason (diff) | |
fix: data dictionary guarantees reason key existence if pardon reason exists
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index bc944aa8e..db1204a8d 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -447,6 +447,7 @@ class InfractionScheduler: data = {"active": False} if pardon_reason is not None: + data["reason"] = "" # Append pardon reason to infraction in database. if (punish_reason := infraction["reason"]) is not None: data["reason"] = punish_reason + " | " |