From f0122053a72770c18078f6e885425b85caefee43 Mon Sep 17 00:00:00 2001 From: Ash Berlin-Taylor Date: Sun, 22 May 2022 08:54:13 +0100 Subject: [PATCH] Fix exception trying to display moved table warnings (#23837) If you still have an old dangling table from the 2.2 migration this would fail. Make it more resilient and cope with both styles of moved table name (cherry picked from commit 4829b2392586643f5f7393ed423afc28c4814b63) --- airflow/www/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/www/views.py b/airflow/www/views.py index 0ae53e5a5ff7d..a6030e0ab1e94 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -835,7 +835,7 @@ def _iter_parsed_moved_data_table_names(): if segments[0] != settings.AIRFLOW_MOVED_TABLE_PREFIX: continue # Second segment is a version marker that we don't need to show. - yield segments[3], table_name + yield segments[-1], table_name if ( permissions.ACTION_CAN_ACCESS_MENU,