fix another dictionary changed size during iteration exception, possibly triggered only under python3

This commit is contained in:
Kelly Anderson committed 2019-11-09 00:54:41 -07:00
1 parent 8409fdaa48
commit 39e4cd3136
1 file changed
+1 -1
+1 -1
View File
@@ -848,7 +848,7 @@ class PreemptiveCache(object):
with self._lock:
all_data = self.get_all_data()
for root, entries in all_data.items():
for root, entries in list(all_data.items()):
old_count = len(entries)
entries = cleanup_function(root, entries)
if not entries: