This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new a0cb5cd6 Return 404 when project is unknown in api endpoint call
a0cb5cd6 is described below

commit a0cb5cd61a5ba229f4ee77c79ddd06d00b595a02
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 ce998057..1338f00e 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]

Reply via email to