diff --git a/core/dbt/adapters/relation_configs/_factory.py b/core/dbt/adapters/relation_configs/_factory.py index ea23eab4f99..b635313bc82 100644 --- a/core/dbt/adapters/relation_configs/_factory.py +++ b/core/dbt/adapters/relation_configs/_factory.py @@ -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( f"Received relation configs for {relation_type} " # noqa f"but these relation types are not registered on this factory.\n"