fix(aurora): catch a ValueError in changes_factory
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 29s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 41s

This commit is contained in:
Seaswimmer 2024-08-19 17:45:02 -04:00
parent 891b36ccaa
commit 1c3b9377b5
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -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}",
] ]
change_str.remove("") try:
change_str.remove("")
except ValueError:
pass
embed.add_field( embed.add_field(
name=change.type.title(), name=change.type.title(),