fix(aurora): don't mutate a list while iterating through it
This commit is contained in:
parent
7c86d862cf
commit
5d22e67864
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue