This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 4ceeb351822 Remove 'ParamValidationError' handling in apiserver
(#57421)
4ceeb351822 is described below
commit 4ceeb351822e33de2d99109e9c293bc9552c7f3c
Author: Ephraim Anierobi <[email protected]>
AuthorDate: Tue Oct 28 15:28:16 2025 +0100
Remove 'ParamValidationError' handling in apiserver (#57421)
dag.create_dagrun no longer raises ParamValidationError following this
PR: #56923 therefore this usage is no longer needed.
---
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py | 3 ---
1 file changed, 3 deletions(-)
diff --git
a/airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py
b/airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py
index a1edd7eea10..f6c1f016604 100644
--- a/airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py
+++ b/airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py
@@ -80,7 +80,6 @@ from airflow.api_fastapi.core_api.security import (
)
from airflow.api_fastapi.core_api.services.public.dag_run import DagRunWaiter
from airflow.api_fastapi.logging.decorators import action_logging
-from airflow.exceptions import ParamValidationError
from airflow.listeners.listener import get_listener_manager
from airflow.models import DagModel, DagRun
from airflow.models.dag_version import DagVersion
@@ -473,8 +472,6 @@ def trigger_dag_run(
return dag_run
except ValueError as e:
raise HTTPException(status.HTTP_400_BAD_REQUEST, str(e))
- except ParamValidationError as e:
- raise HTTPException(status.HTTP_400_BAD_REQUEST, str(e))
@dag_run_router.get(