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 9c43173  Skip malformed upstream projects data
9c43173 is described below

commit 9c43173d3289f754ed0e78466acdd9ab14ce13af
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Dec 22 15:12:44 2025 +0000

    Skip malformed upstream projects data
---
 atr/datasources/apache.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/atr/datasources/apache.py b/atr/datasources/apache.py
index 8d20a1d..72bffe9 100644
--- a/atr/datasources/apache.py
+++ b/atr/datasources/apache.py
@@ -194,7 +194,7 @@ class ProjectStatus(schema.Strict):
     doap: str | None = None
     homepage: str
     name: str
-    pmc: str
+    pmc: str | None
     shortdesc: str | None = None
     repository: list[str | dict] = schema.factory(list)
     release: list[Release] = schema.factory(list)
@@ -461,6 +461,10 @@ async def _update_projects(data: db.Session, projects: 
ProjectsData) -> tuple[in
         if project_name == "incubator-annotator":
             continue
 
+        if project_status.pmc is None:
+            log.warning(f"project {project_name} has no PMC, skipping")
+            continue
+
         pmc = await data.committee(name=project_status.pmc).get()
         if not pmc:
             log.warning(f"could not find PMC for project {project_name}: 
{project_status.pmc}")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to