File tree 2 files changed +1
-10
lines changed
2 files changed +1
-10
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
import copy
12
12
import string
13
13
14
- from .compat import RecursionError
15
14
from .exceptions import RadishError , FeatureFileSyntaxError , LanguageNotSupportedError
16
15
from .feature import Feature
17
16
from .scenario import Scenario
@@ -517,7 +516,7 @@ def _parse_precondition(self, arguments):
517
516
try :
518
517
current_tags = self ._current_tags + self .feature .tags + self ._inherited_tags
519
518
feature = self ._core .parse_feature (feature_file , self ._tag_expr , inherited_tags = current_tags )
520
- except ( RuntimeError , RecursionError ) as e :
519
+ except RecursionError as e :
521
520
if str (e ).startswith ("maximum recursion depth exceeded" ): # precondition cycling
522
521
raise FeatureFileSyntaxError (
523
522
"Your feature '{0}' has cycling preconditions with '{1}: {2}' starting at line {3}" .format (
You can’t perform that action at this time.
0 commit comments