From 29f393fa894830a8b7c6127752236bf950758761 Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 19 Aug 2024 17:21:33 -0400 Subject: [PATCH] fix(aurora): fix an attributeerror when editing a case type that doesn't use durations --- aurora/aurora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index c43425f..187d14a 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -1081,7 +1081,7 @@ class Aurora(commands.Cog): "timestamp": old_moderation.timestamp, "reason": old_moderation.reason, "user_id": old_moderation.moderator_id, - "duration": timedelta_to_string(old_moderation.duration), + "duration": timedelta_to_string(old_moderation.duration) if old_moderation.duration else None, "end_timestamp": old_moderation.end_timestamp, })) moderation.changes.append(Change.from_dict(interaction.client, {