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
9b3b934d
Commit
9b3b934d
authored
Jun 02, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo & cleaner exception printing
parent
4516ac6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pronterface.py
pronterface.py
+2
-2
No files found.
pronterface.py
View file @
9b3b934d
...
...
@@ -1540,12 +1540,12 @@ class PronterWindow(MainWindow, pronsole.pronsole):
except
SerialException
as
e
:
# Currently, there is no errno, but it should be there in the future
if
e
.
errno
==
2
:
print
_
(
"Error: You are trying to connect to a non-exis
i
ting port."
)
print
_
(
"Error: You are trying to connect to a non-existing port."
)
elif
e
.
errno
==
8
:
print
_
(
"Error: You don't have permission to open
%
s."
)
%
port
print
_
(
"You might need to add yourself to the dialout group."
)
else
:
print
e
traceback
.
print_exc
()
# Kill the scope anyway
return
self
.
statuscheck
=
True
...
...
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