Skip to content

Commit

Permalink
Fix DAG test
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Jan 8, 2025
1 parent e84d1e3 commit de08e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/models/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@ def create_dagrun(
"""
logical_date = timezone.coerce_datetime(logical_date)

if not isinstance(data_interval, DataInterval):
if data_interval and not isinstance(data_interval, DataInterval):
data_interval = DataInterval(*map(timezone.coerce_datetime, data_interval))

if isinstance(run_type, DagRunType):
Expand Down

0 comments on commit de08e6c

Please sign in to comment.