You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/06/17 18:37:08 UTC
(tooling-trusted-release) branch main updated: Work around a type bug when exporting keys
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 <se...@miscoranda.com>
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) <re...@apache.org>
#
# [...]
+ 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: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org