Commit 0d6d7175 authored by Guillaume Seguin's avatar Guillaume Seguin

Only do the processing if there's data to process in GCoder

parent e425728a
......@@ -134,6 +134,7 @@ class GCode(object):
self.lines = [Line(l2) for l2 in
(l.strip() for l in data)
if l2]
if self.lines:
self._preprocess_lines()
self.filament_length = self._preprocess_extrusion()
self._create_layers()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment