Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
4584cef1
Commit
4584cef1
authored
May 17, 2016
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If a layer idx is none skip it, don't throw an error
parent
2eac0462
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
printcore.py
printrun/printcore.py
+4
-1
No files found.
printrun/printcore.py
View file @
4584cef1
...
@@ -551,7 +551,10 @@ class printcore():
...
@@ -551,7 +551,10 @@ class printcore():
if
self
.
preprintsendcb
:
if
self
.
preprintsendcb
:
if
self
.
queueindex
+
1
<
len
(
self
.
mainqueue
):
if
self
.
queueindex
+
1
<
len
(
self
.
mainqueue
):
(
next_layer
,
next_line
)
=
self
.
mainqueue
.
idxs
(
self
.
queueindex
+
1
)
(
next_layer
,
next_line
)
=
self
.
mainqueue
.
idxs
(
self
.
queueindex
+
1
)
next_gline
=
self
.
mainqueue
.
all_layers
[
next_layer
][
next_line
]
try
:
next_gline
=
self
.
mainqueue
.
all_layers
[
next_layer
][
next_line
]
except
:
next_gline
=
None
else
:
else
:
next_gline
=
None
next_gline
=
None
gline
=
self
.
preprintsendcb
(
gline
,
next_gline
)
gline
=
self
.
preprintsendcb
(
gline
,
next_gline
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment