🥅 Protect offset code against empty temps

Potential fix for #4903
This commit is contained in:
Gina Häußge committed 2023-11-20 11:12:54 +01:00
1 parent 5ab0786873
commit a1f43ced66
1 file changed
+1 -1
+1 -1
View File
@@ -6138,7 +6138,7 @@ def apply_temperature_offsets(line, offsets, current_tool=None):
return line
groups = match.groupdict()
if "temperature" not in groups or groups["temperature"] is None:
if "temperature" not in groups or not groups["temperature"]:
return line
offset = 0