fixed dbt exception condition (#15762)

This commit is contained in:
Onkar Ravgan 2024-04-01 15:21:06 +05:30 committed by GitHub
parent 2931798be9
commit 2e640f6ef2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,7 +173,7 @@ def _(config: DbtCloudConfig): # pylint: disable=too-many-locals
params_data["job_definition_id"] = job_id params_data["job_definition_id"] = job_id
response = client.get(f"/accounts/{account_id}/runs", data=params_data) 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( raise DBTConfigException(
"Unable to get the dbt job runs information.\n" "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" "Please check if the auth token is correct and has the necessary scopes to fetch dbt runs"