mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 00:20:48 +00:00
refac: better error message
This commit is contained in:
parent
2e899f0e19
commit
5cb9dfa972
6
main.py
6
main.py
@ -197,7 +197,7 @@ async def get_valves(pipeline_id: str):
|
||||
].get("valves", False):
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_404_NOT_FOUND,
|
||||
detail=f"Valves {pipeline_id} not found",
|
||||
detail=f"Valves for {pipeline_id} not found",
|
||||
)
|
||||
|
||||
pipeline = PIPELINE_MODULES[pipeline_id]
|
||||
@ -211,7 +211,7 @@ async def get_valves_spec(pipeline_id: str):
|
||||
].get("valves", False):
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_404_NOT_FOUND,
|
||||
detail=f"Valves {pipeline_id} not found",
|
||||
detail=f"Valves for {pipeline_id} not found",
|
||||
)
|
||||
|
||||
pipeline = PIPELINE_MODULES[pipeline_id]
|
||||
@ -225,7 +225,7 @@ async def update_valves(pipeline_id: str, form_data: dict):
|
||||
].get("valves", False):
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_404_NOT_FOUND,
|
||||
detail=f"Valves {pipeline_id} not found",
|
||||
detail=f"Valves for {pipeline_id} not found",
|
||||
)
|
||||
|
||||
pipeline = PIPELINE_MODULES[pipeline_id]
|
||||
|
Loading…
Reference in New Issue
Block a user