fix NoneType comparison error, closes #3493

This commit is contained in:
ted committed 2020-03-26 12:03:12 -07:00
1 parent 6232a04e52
commit 85ce90ca52
1 file changed
+1 -1
+1 -1
View File
@@ -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