uranusjr commented on code in PR #46390:
URL: https://github.com/apache/airflow/pull/46390#discussion_r1948532783


##########
airflow/models/dag.py:
##########
@@ -1781,7 +1781,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)
   ```
   
   Does not need to change this; `coerce_datetime` can handle None correctly.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to