fix(aurora): catch a ValueError in changes_factory
This commit is contained in:
parent
891b36ccaa
commit
1c3b9377b5
1 changed files with 4 additions and 1 deletions
|
@ -270,7 +270,10 @@ async def changes_factory(interaction: Interaction, moderation: Moderation) -> E
|
||||||
f"{bold('End Timestamp:')} {end_timestamp}" if end_timestamp else "",
|
f"{bold('End Timestamp:')} {end_timestamp}" if end_timestamp else "",
|
||||||
f"{bold('Timestamp')} {timestamp}",
|
f"{bold('Timestamp')} {timestamp}",
|
||||||
]
|
]
|
||||||
|
try:
|
||||||
change_str.remove("")
|
change_str.remove("")
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name=change.type.title(),
|
name=change.type.title(),
|
||||||
|
|
Loading…
Reference in a new issue