Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lettuce
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
lettuce
Commits
764456df
Commit
764456df
authored
Aug 27, 2015
by
Gabriel Falcão
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #481 from hectord/first_idea
Remove non-ASCII characters from a critical exception's message
parents
40c940d3
de914ad4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lettuce/__init__.py
+3
-0
lettuce/exceptions.py
+5
-2
No files found.
lettuce/__init__.py
View file @
764456df
...
...
@@ -189,6 +189,9 @@ class Runner(object):
except
exceptions
.
LettuceSyntaxError
,
e
:
sys
.
stderr
.
write
(
e
.
msg
)
failed
=
True
except
exceptions
.
NoDefinitionFound
,
e
:
sys
.
stderr
.
write
(
e
.
msg
)
failed
=
True
except
:
if
not
self
.
failfast
:
e
=
sys
.
exc_info
()[
1
]
...
...
lettuce/exceptions.py
View file @
764456df
...
...
@@ -28,8 +28,11 @@ class NoDefinitionFound(Exception):
"""
def
__init__
(
self
,
step
):
self
.
step
=
step
super
(
NoDefinitionFound
,
self
)
.
__init__
(
'The step r"
%
s" is not defined'
%
self
.
step
.
sentence
)
error
=
filter
(
lambda
x
:
0
<=
ord
(
x
)
<=
127
,
'The step r"
%
s" is not defined'
%
self
.
step
.
sentence
)
super
(
NoDefinitionFound
,
self
)
.
__init__
(
error
)
class
ReasonToFail
(
object
):
...
...
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