Skip to content

Commit

Permalink
Rename caught exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed May 26, 2024
1 parent a5946c3 commit 53bedff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tm/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ def count_apps(rule: Rule, tape: IndexTape) -> Apps | None:

try:
div, rem = divmod(count, absdiff)
except ExpModLimit as exc:
raise RuleLimit(f'count_apps: {exc}') from exc
except ModDepthLimit as exc:
raise RuleLimit(f'depth-limit: {exc}') from exc
except ExpModLimit as exp:
raise RuleLimit(f'count_apps: {exp}') from exp
except ModDepthLimit as dep:
raise RuleLimit(f'depth-limit: {dep}') from dep

times, min_res = (
(div, rem)
Expand Down

0 comments on commit 53bedff

Please sign in to comment.