Skip to content

Commit

Permalink
Don't modify a list while iterating over it
Browse files Browse the repository at this point in the history
  • Loading branch information
lmacken committed Apr 5, 2012
1 parent 02a7e0a commit b74b215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tamefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def tamefox():
else:
for running in alive:
stop(processes[running])
alive.remove(running)
alive = []
finally:
if processes:
for process in processes.values():
Expand Down

0 comments on commit b74b215

Please sign in to comment.