Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions airflow/utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_dag_by_file_location(dag_id: str):
dag_model = DagModel.get_current(dag_id)
if dag_model is None:
raise AirflowException(
f'dag_id could not be found: {dag_id}. Either the dag did not exist or it failed to parse.'
f"Dag {dag_id!r} could not be found; either it does not exist or it failed to parse."
)
dagbag = DagBag(dag_folder=dag_model.fileloc)
return dagbag.dags[dag_id]
Expand All @@ -190,7 +190,7 @@ def get_dag(subdir: Optional[str], dag_id: str) -> "DAG":
dagbag = DagBag(process_subdir(subdir))
if dag_id not in dagbag.dags:
raise AirflowException(
f'dag_id could not be found: {dag_id}. Either the dag did not exist or it failed to parse.'
f"Dag {dag_id!r} could not be found; either it does not exist or it failed to parse."
)
return dagbag.dags[dag_id]

Expand Down