fix NoneType comparison error, closes #3493
This commit is contained in:
1 parent
6232a04e52
commit
85ce90ca52
1 file changed
+1
-1
@@ -2537,7 +2537,7 @@ class MachineCom(object):
|
||||
|
||||
tools = self.last_temperature.tools
|
||||
for temp in [tools[k][1] for k in tools.keys()]:
|
||||
if temp > self._temperatureTargetSetThreshold:
|
||||
if temp and temp > self._temperatureTargetSetThreshold:
|
||||
return get("temperatureTargetSet", target_default)
|
||||
|
||||
bed = self.last_temperature.bed
|
||||
|
||||
Reference in new issue
Block a user