From 39e4cd313651da4e77e410a2a490239cbf641f16 Mon Sep 17 00:00:00 2001 From: Kelly Anderson Date: Sat, 9 Nov 2019 00:54:41 -0700 Subject: [PATCH] fix another dictionary changed size during iteration exception, possibly triggered only under python3 --- src/octoprint/server/util/flask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/util/flask.py b/src/octoprint/server/util/flask.py index f24e890ac..5b777838b 100644 --- a/src/octoprint/server/util/flask.py +++ b/src/octoprint/server/util/flask.py @@ -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: