Skip to content

Commit

Permalink
Add list around iterator in handle_missing_dep (#5285)
Browse files Browse the repository at this point in the history
Co-authored-by: James Bourbeau <[email protected]>
  • Loading branch information
mrocklin and jrbourbeau authored Aug 31, 2021
1 parent 2588151 commit a2cb6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2554,7 +2554,7 @@ async def handle_missing_dep(self, *deps, **kwargs):
if not deps:
return

for dep in deps:
for dep in list(deps):
if dep.suspicious_count > 5:
deps.remove(dep)
self.bad_dep(dep)
Expand Down

0 comments on commit a2cb6df

Please sign in to comment.