🐛 SWU: Fix modification while iterating error

This commit is contained in:
Gina Häußge committed 2020-09-17 15:23:33 +02:00
1 parent cfb9c93e65
commit cb43f46b83
1 file changed
+1 -1
@@ -600,7 +600,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
for k, v in data.items():
if k in defaults and defaults[k] == data[k]:
del data[k]
delete.append(k)
for k in delete:
if k in data: