From 2e640f6ef27c060ed78d1467a4c75f29dfd93397 Mon Sep 17 00:00:00 2001 From: Onkar Ravgan Date: Mon, 1 Apr 2024 15:21:06 +0530 Subject: [PATCH] fixed dbt exception condition (#15762) --- .../src/metadata/ingestion/source/database/dbt/dbt_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingestion/src/metadata/ingestion/source/database/dbt/dbt_config.py b/ingestion/src/metadata/ingestion/source/database/dbt/dbt_config.py index 3dfb91c6588..79e9bc1ec2e 100644 --- a/ingestion/src/metadata/ingestion/source/database/dbt/dbt_config.py +++ b/ingestion/src/metadata/ingestion/source/database/dbt/dbt_config.py @@ -173,7 +173,7 @@ def _(config: DbtCloudConfig): # pylint: disable=too-many-locals params_data["job_definition_id"] = job_id response = client.get(f"/accounts/{account_id}/runs", data=params_data) - if not response and not response.get("data"): + if not response or not response.get("data"): raise DBTConfigException( "Unable to get the dbt job runs information.\n" "Please check if the auth token is correct and has the necessary scopes to fetch dbt runs"