Skip to content

Commit 13584f9

Browse files
committed
RecursionError now exist in all supported versions
1 parent 56f2348 commit 13584f9

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Diff for: radish/compat.py

-8
This file was deleted.

Diff for: radish/parser.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import copy
1212
import string
1313

14-
from .compat import RecursionError
1514
from .exceptions import RadishError, FeatureFileSyntaxError, LanguageNotSupportedError
1615
from .feature import Feature
1716
from .scenario import Scenario
@@ -517,7 +516,7 @@ def _parse_precondition(self, arguments):
517516
try:
518517
current_tags = self._current_tags + self.feature.tags + self._inherited_tags
519518
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:
521520
if str(e).startswith("maximum recursion depth exceeded"): # precondition cycling
522521
raise FeatureFileSyntaxError(
523522
"Your feature '{0}' has cycling preconditions with '{1}: {2}' starting at line {3}".format(

0 commit comments

Comments
 (0)