Skip to content

Commit

Permalink
fix exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Oct 19, 2023
1 parent 10c90b2 commit c006503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/adapters/relation_configs/_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, **kwargs):
try:
for relation_type in self.relation_configs.keys():
self.relation_types(relation_type)
except AssertionError:
except ValueError:
raise DbtRuntimeError(

Check warning on line 40 in core/dbt/adapters/relation_configs/_factory.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/adapters/relation_configs/_factory.py#L39-L40

Added lines #L39 - L40 were not covered by tests
f"Received relation configs for {relation_type} " # noqa
f"but these relation types are not registered on this factory.\n"
Expand Down

0 comments on commit c006503

Please sign in to comment.