Fix for KeyError on spindlespeed

This commit is contained in:
Xenosb
2015-09-09 19:50:29 +02:00
parent e3345560ec
commit 48717e9348

View File

@@ -1828,8 +1828,11 @@ class App(QtCore.QObject):
for param in routes:
if param in routes[param].defaults:
routes[param].defaults[param] = self.defaults[param]
self.log.debug(" " + param + " OK")
try:
routes[param].defaults[param] = self.defaults[param]
self.log.debug(" " + param + " OK")
except KeyError:
pass
else:
# Try extracting the name:
# classname_param here is param in the object