Skip to content

Commit 9b34ce8

Browse files
committed
fix: use the correct exception object
1 parent ecb34b3 commit 9b34ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dbt_score/dbt_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def dbt_parse() -> "dbtRunnerResult":
7272
result: "dbtRunnerResult" = dbtRunner().invoke(["parse"])
7373

7474
if not result.success:
75-
raise DbtParseException("dbt parse failed.", root_cause=None)
75+
raise DbtParseException("dbt parse failed.", root_cause=result.exception)
7676

7777
return result
7878

0 commit comments

Comments
 (0)