diff --git a/airflow/www/views.py b/airflow/www/views.py index 8f2104c90b4a8..256d850e0ad8f 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -2652,7 +2652,7 @@ def _convert_to_date(session, column): for dr in dag_states ] - if dag_states: + if dag_states and dag_states[-1].data_interval_start and dag_states[-1].data_interval_end: last_automated_data_interval = DataInterval( dag_states[-1].data_interval_start, dag_states[-1].data_interval_end )