Skip to content

Commit

Permalink
change to internal error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx committed Dec 13, 2024
1 parent fc3ea64 commit e904714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/dbt/artifacts/schemas/manifest/v12/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
schema_version,
)
from dbt.artifacts.schemas.upgrades import upgrade_manifest_json
from dbt_common.exceptions import DbtInternalError

NodeEdgeMap = Dict[str, List[str]]
UniqueID = str
Expand Down Expand Up @@ -187,6 +188,6 @@ def validate(cls, _):
# that are not present in the schema, from_dict will work fine.
# As long as validate is not called, the schema will not be enforced.
# This is intentional, as it allows for safer schema upgrades.
raise RuntimeError(
raise DbtInternalError(

Check warning on line 191 in core/dbt/artifacts/schemas/manifest/v12/manifest.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/artifacts/schemas/manifest/v12/manifest.py#L191

Added line #L191 was not covered by tests
"The WritableManifest should never be validated directly to allow for schema upgrades."
)

0 comments on commit e904714

Please sign in to comment.