Merge pull request #3494 from tedder/ted/3493/nonecheck

fix NoneType comparison error, closes #3493
This commit is contained in:
Gina Häußge authored and GitHub committed 2020-04-03 15:12:27 +02:00
commit 7767c16916
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