diff options
| author | 2022-08-18 15:15:36 -0400 | |
|---|---|---|
| committer | 2022-08-18 15:15:36 -0400 | |
| commit | e64572fcfa91b7785b1ac37d5fd54b9e5f479401 (patch) | |
| tree | 7bc73efccd624f323d1eb7c04fb9330646abc896 | |
| parent | fix: add check to prevent NoneType from passing into str concatenation (diff) | |
fix: lint (again)
| -rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index 864aff9b2..4d06c6b16 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -443,14 +443,14 @@ class InfractionScheduler: try: # Mark infraction as inactive in the database. log.trace(f"Marking infraction #{id_} as inactive in the database.") - + data = {"active": False, "reason": ""} - + if pardon_reason is not None: # Append pardon reason to infraction in database. if (punish_reason := infraction["reason"]) is not None: data["reason"] = punish_reason + " | " - + data["reason"] += f"Pardoned: {pardon_reason}" await self.bot.api_client.patch( |