From 331dff85397edbbcaf39f90924d74fe41d3d8f70 Mon Sep 17 00:00:00 2001 From: subham611 Date: Sun, 14 Apr 2024 10:34:21 +0530 Subject: [PATCH] Removes try catch --- airflow/providers/databricks/hooks/databricks.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/airflow/providers/databricks/hooks/databricks.py b/airflow/providers/databricks/hooks/databricks.py index 18319f03053a6..1a0ab8e8c6ba8 100644 --- a/airflow/providers/databricks/hooks/databricks.py +++ b/airflow/providers/databricks/hooks/databricks.py @@ -663,12 +663,7 @@ def update_job_permission(self, job_id: int, json: dict[str, Any]) -> dict: :param json: payload :return: json containing permission specification """ - response = {} - try: - response = self._do_api_call(("PATCH", f"api/2.0/permissions/jobs/{job_id}"), json) - except Exception as e: - self.log.error("Could not update permission %s", e) - return response + return self._do_api_call(("PATCH", f"api/2.0/permissions/jobs/{job_id}"), json) def test_connection(self) -> tuple[bool, str]: """Test the Databricks connectivity from UI."""