File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2268,12 +2268,12 @@ def create_dagrun(
2268
2268
"""
2269
2269
if run_id : # Infer run_type from run_id if needed.
2270
2270
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 )} " )
2272
2272
if not run_type :
2273
2273
run_type = DagRunType .from_run_id (run_id )
2274
2274
elif run_type and execution_date is not None : # Generate run_id from run_type and execution_date.
2275
2275
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 )} " )
2277
2277
run_id = DagRun .generate_run_id (run_type , execution_date )
2278
2278
else :
2279
2279
raise AirflowException (
You can’t perform that action at this time.
0 commit comments