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

   <!-- SPDX-License-Identifier: Apache-2.0
        https://www.apache.org/licenses/LICENSE-2.0 -->
   
   Fixes an issue where a `ValueError` is raised internally if a `DagRun` is 
not found during the `ti_run` endpoint execution. This resulted in an unhandled 
500 Internal Server Error being returned to the client instead of a clean error 
payload.
   
   This PR replaces the `ValueError` with an `HTTPException(status_code=404)`, 
which complies with the execution API error translation rules.
   
   closes: #69392
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes (Gemini AI Assistant)
   
   <!--
   Generated-by: Gemini AI following the guidelines
   -->
   
   ---
   


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