mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-29 01:32:01 +00:00
fixed dbt exception condition (#15762)
This commit is contained in:
parent
2931798be9
commit
2e640f6ef2
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user