This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 4829b23925 Fix exception trying to display moved table warnings
(#23837)
4829b23925 is described below
commit 4829b2392586643f5f7393ed423afc28c4814b63
Author: Ash Berlin-Taylor <[email protected]>
AuthorDate: Sun May 22 08:54:13 2022 +0100
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
---
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 48f6a47f5e..7d814cccff 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -835,7 +835,7 @@ class Airflow(AirflowBaseView):
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,