fix(aurora): fix an attributeerror when editing a case type that doesn't use durations
This commit is contained in:
parent
0c2cde1a78
commit
29f393fa89
1 changed files with 1 additions and 1 deletions
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue