Skip to content

Commit

Permalink
Fix exception trying to display moved table warnings (apache#23837)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ashb authored May 22, 2022
1 parent 344304e commit 4829b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4829b23

Please sign in to comment.