Skip to content

Commit

Permalink
Revert RuffError name change in old script
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Nov 2, 2023
1 parent a499479 commit 85cef61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check_ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def _get_commit(self: Self, checkout_dir: Path) -> str:
SUMMARY_LINE_RE = re.compile(r"^(Found \d+ error.*)|(.*potentially fixable with.*)$")


class ToolError(Exception):
class RuffError(Exception):
"""An error reported by ruff."""


Expand Down Expand Up @@ -200,7 +200,7 @@ async def check(
logger.debug(f"Finished checking {name} with {ruff} in {end - start:.2f}")

if proc.returncode != 0:
raise ToolError(err.decode("utf8"))
raise RuffError(err.decode("utf8"))

lines = [
line
Expand Down

0 comments on commit 85cef61

Please sign in to comment.