Skip to content

Commit

Permalink
fix: alteration of loop while iterating over it
Browse files Browse the repository at this point in the history
  • Loading branch information
krantheman committed Dec 2, 2024
1 parent f172d1d commit 87dcc2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def _update_recipients(self, type: str, recipients: list[str] | None = None) ->
if d not in prev_recipients:
self._add_recipient(type, d)

for d in self.recipients:
for d in self.recipients[:]:
if d.type == type and d.email not in recipients:
self.recipients.remove(d)

Expand Down

0 comments on commit 87dcc2d

Please sign in to comment.