Skip to content

Commit 62d3499

Browse files
committed
Fix HTTP error code typo
Change docstrings of `job_key_query_or_form()` and `path_query_or_form()` to reference the correct HTTP error code (400).
1 parent 7a11519 commit 62d3499

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/galaxy/webapps/galaxy/api/job_files.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
API for asynchronous job running mechanisms can use to fetch or put files related to running and queued jobs.
2+
API that asynchronous job running mechanisms can use to fetch or put files related to running and queued jobs.
33
"""
44

55
import logging
@@ -60,7 +60,7 @@ def path_query_or_form(
6060
6161
This method does not force the client to provide the parameter, it could simply not submit the parameter in either
6262
format. To force the client to provide the parameter, coerce the output of the method to a string, i.e.
63-
`path: str = Depends(path_query_or_form)` so that FastAPI responds with status code 500 when the parameter is not
63+
`path: str = Depends(path_query_or_form)` so that FastAPI responds with status code 400 when the parameter is not
6464
provided.
6565
"""
6666
return path_query or path
@@ -92,7 +92,7 @@ def job_key_query_or_form(
9292
9393
This method does not force the client to provide the parameter, it could simply not submit the parameter in either
9494
format. To force the client to provide the parameter, coerce the output of the method to a string, i.e.
95-
`job_key: str = Depends(job_key_query_or_form)` so that FastAPI responds with status code 500 when the parameter is
95+
`job_key: str = Depends(job_key_query_or_form)` so that FastAPI responds with status code 400 when the parameter is
9696
not provided.
9797
"""
9898
return job_key_query or job_key

0 commit comments

Comments
 (0)