If a layer idx is none skip it, don't throw an error

parent 2eac0462
......@@ -551,7 +551,10 @@ class printcore():
if self.preprintsendcb:
if self.queueindex + 1 < len(self.mainqueue):
(next_layer, next_line) = self.mainqueue.idxs(self.queueindex + 1)
try:
next_gline = self.mainqueue.all_layers[next_layer][next_line]
except:
next_gline = None
else:
next_gline = None
gline = self.preprintsendcb(gline, next_gline)
......
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