Fixing key not found error
This commit is contained in:
1 parent
8df55012d7
commit
8733292dc3
2 files changed
+4
No files matched your search
@@ -40,6 +40,9 @@ class Printer:
|
||||
keys = ['fan','gcode_move','idle_timeout','pause_resume','print_stats','toolhead','virtual_sdcard']
|
||||
for x in keys:
|
||||
if x in data:
|
||||
if x not in self.data:
|
||||
self.data[x] = {}
|
||||
|
||||
for y in data[x]:
|
||||
self.data[x][y] = data[x][y]
|
||||
|
||||
|
||||
Reference in new issue
Block a user