JivinSardine opened a new pull request, #64248:
URL: https://github.com/apache/airflow/pull/64248

   When ordering tasks by a field like 'start_date' that contains None values, 
Python's sorted() raises a TypeError because None cannot be compared with 
datetime objects. This change catches TypeError in addition to AttributeError 
and returns a 400 Bad Request.
   
   Fixes #63927
   
   ## Before
   ```
   TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
   ```
   
   ## After
   Returns HTTP 400 with the error message when sorting by a field with None 
values.


-- 
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]

Reply via email to