Skip to content

Commit e6f06b0

Browse files
committed
Handle PermisssionDenied exception so that a new dashboard is created.
1 parent 66dafd8 commit e6f06b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/databricks/labs/ucx/install.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,10 @@ def _handle_existing_dashboard(self, dashboard_id: str, display_name: str, paren
642642
except NotFound:
643643
pass
644644
return None # Recreate the dashboard if it's reference is corrupted (manually)
645+
except PermissionDenied:
646+
logger.warning(f"Cannot access dashboard {display_name} ({dashboard_id}), permission denied")
647+
pass
648+
return None # Create a new dashboard if permission is denied.
645649
return dashboard_id # Update the existing dashboard
646650

647651
# InternalError and DeadlineExceeded are retried because of Lakeview internal issues

0 commit comments

Comments
 (0)