Skip to content

Commit bca7ac3

Browse files
Leondon9ruvnet
andcommitted
Fix ruff format: collapse single-line raise ValueError
Co-Authored-By: claude-flow <ruv@ruv.net>
1 parent 0e4508c commit bca7ac3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

airflow-core/src/airflow/cli/commands/task_command.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ def _get_ti(
215215
except NotFullyPopulated:
216216
pass # Dynamic mapping — cannot validate at parse time
217217
except NotMapped:
218-
raise ValueError(
219-
f"Task '{task.task_id}' is not mapped; map_index must be -1."
220-
)
218+
raise ValueError(f"Task '{task.task_id}' is not mapped; map_index must be -1.")
221219
dag_version = DagVersion.get_latest_version(dag.dag_id, session=session)
222220
if not dag_version:
223221
# TODO: Remove this once DagVersion.get_latest_version is guaranteed to return a DagVersion/raise

0 commit comments

Comments
 (0)