From 32ebb0fade7a5fd577848a744f60eba0f94cf89d Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 27 Oct 2024 12:30:06 +1100 Subject: [PATCH] fix: tests --- superset/commands/report/execute.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/superset/commands/report/execute.py b/superset/commands/report/execute.py index 96e8dab104220..c81750daba407 100644 --- a/superset/commands/report/execute.py +++ b/superset/commands/report/execute.py @@ -233,10 +233,11 @@ def get_dashboard_urls( ) and feature_flag_manager.is_feature_enabled("ALERT_REPORT_TABS"): if anchor := dashboard_state.get("anchor"): try: - anchor_list = json.loads(anchor) + anchor_list: list[str] = json.loads(anchor) return self._get_tabs_urls(anchor_list) except json.JSONDecodeError: - return [self._get_tab_url(dashboard_state)] + logger.debug("Anchor value is not a list, Fall back to single tab") + return [self._get_tab_url(dashboard_state)] dashboard = self._report_schedule.dashboard dashboard_id_or_slug = (