Skip to content

Commit 1aed460

Browse files
authored
Merge pull request #103 from datakind/develop
feat: added option for api auth
2 parents b2789dc + fcffe8e commit 1aed460

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webapp/databricks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Format,
99
ExecuteStatementRequestOnWaitTimeout,
1010
Disposition,
11+
StatementState,
1112
)
1213
from .config import databricks_vars, gcs_vars
1314
from .utilities import databricksify_inst_name, SchemaType
@@ -241,7 +242,7 @@ def fetch_table_data(
241242
raise ValueError(f"Databricks API call failed: {e}")
242243

243244
# Check if the query execution was successful
244-
if response.status.state != "SUCCEEDED":
245+
if response.status.state != StatementState.SUCCEEDED:
245246
error_message = (
246247
response.status.error.message
247248
if response.status.error

0 commit comments

Comments
 (0)