This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-10-test by this push:
     new 04d0381bf5c Fix empty task instance for log (#45702) (#45703)
04d0381bf5c is described below

commit 04d0381bf5c4acc199b5775cc84d6f60206301b4
Author: Jens Scheffler <[email protected]>
AuthorDate: Thu Jan 16 16:46:34 2025 +0100

    Fix empty task instance for log (#45702) (#45703)
    
    Co-authored-by: MishchenkoYuriy 
<[email protected]>
---
 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 fdaee7a79f6..284733857e8 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1771,7 +1771,7 @@ class Airflow(AirflowBaseView):
             title="Log by attempts",
             dag_id=dag_id,
             task_id=task_id,
-            task_display_name=ti.task_display_name,
+            task_display_name=ti.task_display_name if ti else "",
             execution_date=execution_date,
             map_index=map_index,
             form=form,

Reply via email to