From dfd43ea3bdb75111e4bb8666489e3e81cc0200a6 Mon Sep 17 00:00:00 2001 From: saravmajestic Date: Wed, 11 Dec 2024 16:33:39 +0530 Subject: [PATCH] fix: null condition --- src/datapilot/core/platforms/dbt/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datapilot/core/platforms/dbt/executor.py b/src/datapilot/core/platforms/dbt/executor.py index 3dd9cc5..f665b33 100644 --- a/src/datapilot/core/platforms/dbt/executor.py +++ b/src/datapilot/core/platforms/dbt/executor.py @@ -185,7 +185,7 @@ def run(self): if self.token and self.instance_name and self.backend_url: llm_check_results = self.run_llm_checks() - llm_reports = llm_check_results["results"] + llm_reports = llm_check_results.get("results", []) llm_insights = {} for report in llm_reports: for answer in report["answer"]: