Skip to content

Commit

Permalink
RecursionError now exist in all supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fliiiix committed Dec 19, 2024
1 parent 56f2348 commit 13584f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions radish/compat.py

This file was deleted.

3 changes: 1 addition & 2 deletions radish/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import copy
import string

from .compat import RecursionError
from .exceptions import RadishError, FeatureFileSyntaxError, LanguageNotSupportedError
from .feature import Feature
from .scenario import Scenario
Expand Down Expand Up @@ -517,7 +516,7 @@ def _parse_precondition(self, arguments):
try:
current_tags = self._current_tags + self.feature.tags + self._inherited_tags
feature = self._core.parse_feature(feature_file, self._tag_expr, inherited_tags=current_tags)
except (RuntimeError, RecursionError) as e:
except RecursionError as e:
if str(e).startswith("maximum recursion depth exceeded"): # precondition cycling
raise FeatureFileSyntaxError(
"Your feature '{0}' has cycling preconditions with '{1}: {2}' starting at line {3}".format(
Expand Down

0 comments on commit 13584f9

Please sign in to comment.