pankajastro commented on code in PR #36739:
URL: https://github.com/apache/airflow/pull/36739#discussion_r1450343168


##########
airflow/cli/simple_table.py:
##########
@@ -118,8 +118,9 @@ def print_as(
             dict_data = data
         else:
             raise ValueError("To tabulate non-dictionary data you need to 
provide `mapper` function")
-        dict_data = [{k: self._normalize_data(v, output) for k, v in 
d.items()} for d in dict_data]
-        renderer(dict_data)
+        dict_data = [{k: self._normalize_data(v, output) for k, v in 
d.items()} for d in dict_data if d]
+        if dict_data:
+            renderer(dict_data)

Review Comment:
   I'll remove it from this PR. I'll raise a separate PR because I notice 
sometime rendering empty list like `[]` 



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to