From da739c1a490a851dbae864e521df00404af17f32 Mon Sep 17 00:00:00 2001 From: Mike Gouline <1960272+gouline@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:32:31 +1100 Subject: [PATCH] Fix list index out of range in manifest reader --- dbtmetabase/manifest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbtmetabase/manifest.py b/dbtmetabase/manifest.py index 2b395249..eec503a0 100644 --- a/dbtmetabase/manifest.py +++ b/dbtmetabase/manifest.py @@ -182,8 +182,7 @@ def _read_relationships( # Skip the incoming relationship tests, in which the fk_target_table is the model currently being read. # Otherwise, the primary key of the current model would be (incorrectly) determined to be FK. - is_incoming_relationship_test = depends_on_nodes[1] != unique_id - if len(depends_on_nodes) == 2 and is_incoming_relationship_test: + if len(depends_on_nodes) == 2 and depends_on_nodes[1] != unique_id: _logger.debug( "Skip this incoming relationship test, concerning nodes %s", depends_on_nodes,