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


##########
airflow/cli/commands/dag_command.py:
##########
@@ -375,15 +375,17 @@ def dag_list_dags(args, session=NEW_SESSION) -> None:
             file=sys.stderr,
         )
 
-    def get_dag_detail(dag: DAG) -> dict:
+    def get_dag_detail(dag: DAG) -> dict | None:
         dag_model = DagModel.get_dagmodel(dag.dag_id, session=session)
+        if not dag_model:
+            return None

Review Comment:
   yeah, but wondering if that would be correct data for the end users?



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