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
b0160015
Commit
b0160015
authored
Sep 18, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent crash when port file does not exist
parent
69a28f30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
pronterface.py
printrun/pronterface.py
+7
-1
No files found.
printrun/pronterface.py
View file @
b0160015
...
@@ -1845,9 +1845,15 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1845,9 +1845,15 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
logging
.
error
(
_
(
"Error: You don't have permission to open
%
s."
)
%
port
)
logging
.
error
(
_
(
"Error: You don't have permission to open
%
s."
)
%
port
)
logging
.
error
(
_
(
"You might need to add yourself to the dialout group."
))
logging
.
error
(
_
(
"You might need to add yourself to the dialout group."
))
else
:
else
:
traceback
.
print_exc
(
)
logging
.
error
(
traceback
.
format_exc
()
)
# Kill the scope anyway
# Kill the scope anyway
return
return
except
OSError
as
e
:
if
e
.
errno
==
2
:
logging
.
error
(
_
(
"Error: You are trying to connect to a non-existing port."
))
else
:
logging
.
error
(
traceback
.
format_exc
())
return
self
.
statuscheck
=
True
self
.
statuscheck
=
True
if
port
!=
self
.
settings
.
port
:
if
port
!=
self
.
settings
.
port
:
self
.
set
(
"port"
,
port
)
self
.
set
(
"port"
,
port
)
...
...
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