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-release.git


The following commit(s) were added to refs/heads/main by this push:
     new 95ac02d  Work around a type bug when exporting keys
95ac02d is described below

commit 95ac02dfac65b79f2f7420b7fc7b6d91d1df7156
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Jun 17 19:36:26 2025 +0100

    Work around a type bug when exporting keys
---
 atr/routes/keys.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/atr/routes/keys.py b/atr/routes/keys.py
index 80f67c0..d097f65 100644
--- a/atr/routes/keys.py
+++ b/atr/routes/keys.py
@@ -632,6 +632,9 @@ async def _keys_formatter(committee_name: str, data: 
db.Session) -> str:
         # Comment: Redacted Name (CODE SIGNING KEY) <[email protected]>
         #
         # [...]
+        if isinstance(armored_key, bytes):
+            # TODO: This should not happen, but it does
+            armored_key = armored_key.decode("utf-8", errors="replace")
         armored_key = armored_key.replace("BLOCK-----", "\n" + comment_lines, 
1)
         keys_content_list.append(armored_key)
 


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

Reply via email to