fix(aurora): don't mutate a list while iterating through it
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 41s

This commit is contained in:
Seaswimmer 2024-08-19 17:53:15 -04:00
parent 7c86d862cf
commit 5d22e67864
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -270,13 +270,14 @@ async def changes_factory(interaction: Interaction, moderation: Moderation) -> E
f"{bold('End Timestamp:')} {end_timestamp}" if end_timestamp else "",
f"{bold('Timestamp')} {timestamp}",
]
copy = change_str.copy()
for string in change_str:
if string == "":
change_str.remove(string)
copy.remove(string)
embed.add_field(
name=change.type.title(),
value="\n".join(change_str),
value="\n".join(copy),
inline=False,
)