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
64e108d2
Commit
64e108d2
authored
Jul 22, 2015
by
Michel Sabchuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix exception syntax for module.Exception cases.
This case wasn't catch at my first try.
parent
ead2993f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lettuce/__init__.py
+1
-1
lettuce/registry.py
+1
-1
No files found.
lettuce/__init__.py
View file @
64e108d2
...
...
@@ -177,7 +177,7 @@ class Runner(object):
random
=
self
.
random
,
failfast
=
self
.
failfast
))
except
exceptions
.
LettuceSyntaxError
,
e
:
except
exceptions
.
LettuceSyntaxError
as
e
:
sys
.
stderr
.
write
(
e
.
msg
)
failed
=
True
except
:
...
...
lettuce/registry.py
View file @
64e108d2
...
...
@@ -69,7 +69,7 @@ class StepDict(dict):
def
_assert_is_step
(
self
,
step
,
func
):
try
:
re
.
compile
(
step
)
except
re
.
error
,
e
:
except
re
.
error
as
e
:
raise
StepLoadingError
(
"Error when trying to compile:
\n
"
" regex:
%
r
\n
"
" for function:
%
s
\n
"
...
...
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