ephraimbuddy commented on code in PR #36739:
URL: https://github.com/apache/airflow/pull/36739#discussion_r1449934798
##########
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:
Also look at the custom columns stuff before the change
--
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]