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
a41ab09c
Commit
a41ab09c
authored
Jan 03, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display errors when failing to load file in Plater (#463)
parent
597b994b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
plater.py
printrun/plater.py
+4
-2
No files found.
printrun/plater.py
View file @
a41ab09c
...
...
@@ -238,14 +238,16 @@ class StlPlater(Plater):
try
:
self
.
load_stl
(
filename
)
except
:
dlg
=
wx
.
MessageDialog
(
self
,
_
(
"Loading STL file failed"
),
_
(
"Error"
),
wx
.
OK
)
dlg
=
wx
.
MessageDialog
(
self
,
_
(
"Loading STL file failed"
),
_
(
"Error"
),
wx
.
OK
)
dlg
.
ShowModal
()
traceback
.
print_exc
(
file
=
sys
.
stdout
)
elif
filename
.
lower
()
.
endswith
(
".scad"
):
try
:
self
.
load_scad
(
filename
)
except
:
dlg
=
wx
.
MessageDialog
(
self
,
_
(
"Loading OpenSCAD file failed"
),
_
(
"Error"
),
wx
.
OK
)
dlg
=
wx
.
MessageDialog
(
self
,
_
(
"Loading OpenSCAD file failed"
),
_
(
"Error"
),
wx
.
OK
)
dlg
.
ShowModal
()
traceback
.
print_exc
(
file
=
sys
.
stdout
)
def
load_scad
(
self
,
name
):
lf
=
open
(
name
)
...
...
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