kaxil commented on a change in pull request #15191:
URL: https://github.com/apache/airflow/pull/15191#discussion_r606852448



##########
File path: airflow/www/views.py
##########
@@ -1247,7 +1247,7 @@ def task(self):
         # Color coding the special attributes that are code
         special_attrs_rendered = {}
         for attr_name in wwwutils.get_attr_renderer():
-            if hasattr(task, attr_name):
+            if getattr(task, attr_name, None) is not None:

Review comment:
       This is to not show attributes that are `None` -- that pollutes the 
TaskInstance screen.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to