This is an automated email from the ASF dual-hosted git repository. wave pushed a commit to branch api-project-404-checks in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
commit 8b44798b0701b36ceb5a8263c8443087304fedc7 Author: Dave Fisher <[email protected]> AuthorDate: Thu Feb 19 13:33:29 2026 -0800 Return 404 when project is unknown in api endpoint call --- atr/api/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atr/api/__init__.py b/atr/api/__init__.py index f157411b..06662714 100644 --- a/atr/api/__init__.py +++ b/atr/api/__init__.py @@ -424,6 +424,7 @@ async def ignore_list(project_name: str) -> DictResponse: """ _simple_check(project_name) async with db.session() as data: + await data.project(name=project_name).demand(exceptions.NotFound()) ignores = await data.check_result_ignore(project_name=project_name).all() return models.api.IgnoreListResults( endpoint="/ignore/list", @@ -678,6 +679,7 @@ async def project_releases(name: str) -> DictResponse: """ _simple_check(name) async with db.session() as data: + await data.project(name=name).demand(exceptions.NotFound()) releases = await data.release(project_name=name).all() return models.api.ProjectReleasesResults( endpoint="/project/releases", --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
