Skip to content

Commit

Permalink
chore: rename error
Browse files Browse the repository at this point in the history
  • Loading branch information
grieve54706 committed Dec 20, 2024
1 parent 7a3d038 commit 3e1bb95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibis-server/app/mdl/substitute.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def substitute(self, sql: str, write: str | None = None) -> str:
if isinstance(source, exp.Table):
model = self._find_model(source)
if model is None:
raise TranspileError(f"Model not found: {source}")
raise SubstituteError(f"Model not found: {source}")
source.replace(
exp.Table(
catalog=quote(self.manifest["catalog"]),
Expand Down Expand Up @@ -52,6 +52,6 @@ def quote(s: str) -> str:
return f'"{s}"'


class TranspileError(UnprocessableEntityError):
class SubstituteError(UnprocessableEntityError):
def __init__(self, message: str):
super().__init__(message)

0 comments on commit 3e1bb95

Please sign in to comment.