Skip to content

Commit 52b724e

Browse files
authored
Fix some weird English in create_dagrun exceptions (#23003)
1 parent 90a4c87 commit 52b724e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airflow/models/dag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,12 +2268,12 @@ def create_dagrun(
22682268
"""
22692269
if run_id: # Infer run_type from run_id if needed.
22702270
if not isinstance(run_id, str):
2271-
raise ValueError(f"`run_id` expected to be a str is {type(run_id)}")
2271+
raise ValueError(f"`run_id` should be a str, not {type(run_id)}")
22722272
if not run_type:
22732273
run_type = DagRunType.from_run_id(run_id)
22742274
elif run_type and execution_date is not None: # Generate run_id from run_type and execution_date.
22752275
if not isinstance(run_type, DagRunType):
2276-
raise ValueError(f"`run_type` expected to be a DagRunType is {type(run_type)}")
2276+
raise ValueError(f"`run_type` should be a DagRunType, not {type(run_type)}")
22772277
run_id = DagRun.generate_run_id(run_type, execution_date)
22782278
else:
22792279
raise AirflowException(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy