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 5599d8c  Fix an issue with reporting OpenPGP parsing errors
5599d8c is described below

commit 5599d8c4da178b2df348fe37d262b154052dc3e0
Author: Sean B. Palmer <[email protected]>
AuthorDate: Sun Nov 16 14:55:37 2025 +0000

    Fix an issue with reporting OpenPGP parsing errors
---
 atr/storage/writers/keys.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/atr/storage/writers/keys.py b/atr/storage/writers/keys.py
index 66a4c84..4b71d1d 100644
--- a/atr/storage/writers/keys.py
+++ b/atr/storage/writers/keys.py
@@ -493,7 +493,10 @@ class CommitteeParticipant(FoundationCommitter):
             tmpfile.write(key_block.encode())
             tmpfile.flush()
             keyring = pgpy.PGPKeyring()
-            fingerprints = keyring.load(tmpfile.name)
+            try:
+                fingerprints = keyring.load(tmpfile.name)
+            except StopIteration as e:
+                raise ValueError(f"Error loading OpenPGP key block: {e}") from 
e
             key_list = []
             for fingerprint in fingerprints:
                 try:


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

Reply via email to