Commit 64e108d2 by Michel Sabchuk

Fix exception syntax for module.Exception cases.

This case wasn't catch at my first try.
parent ead2993f
...@@ -177,7 +177,7 @@ class Runner(object): ...@@ -177,7 +177,7 @@ class Runner(object):
random=self.random, random=self.random,
failfast=self.failfast)) failfast=self.failfast))
except exceptions.LettuceSyntaxError, e: except exceptions.LettuceSyntaxError as e:
sys.stderr.write(e.msg) sys.stderr.write(e.msg)
failed = True failed = True
except: except:
......
...@@ -69,7 +69,7 @@ class StepDict(dict): ...@@ -69,7 +69,7 @@ class StepDict(dict):
def _assert_is_step(self, step, func): def _assert_is_step(self, step, func):
try: try:
re.compile(step) re.compile(step)
except re.error, e: except re.error as e:
raise StepLoadingError("Error when trying to compile:\n" raise StepLoadingError("Error when trying to compile:\n"
" regex: %r\n" " regex: %r\n"
" for function: %s\n" " for function: %s\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment