Skip to content

Commit

Permalink
Removes try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
subham611 authored and pankajkoti committed Apr 14, 2024
1 parent 0de1d58 commit 331dff8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions airflow/providers/databricks/hooks/databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 331dff8

Please sign in to comment.