uranusjr commented on code in PR #46232:
URL: https://github.com/apache/airflow/pull/46232#discussion_r1940426672
##########
airflow/models/dag.py:
##########
@@ -1747,7 +1747,8 @@ def create_dagrun(
:meta private:
"""
- logical_date = timezone.coerce_datetime(logical_date)
+ if logical_date is not None:
+ logical_date = timezone.coerce_datetime(logical_date)
Review Comment:
```suggestion
logical_date = timezone.coerce_datetime(logical_date)
```
This function handles None on its own
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]