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/04/24 16:13:55 UTC

(tooling-trusted-release) branch main updated: Fix a bug when validating a vote destination address

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 581316b  Fix a bug when validating a vote destination address
581316b is described below

commit 581316b8b7044afbcb91115f6f1103499853f8e6
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Thu Apr 24 17:13:34 2025 +0100

    Fix a bug when validating a vote destination address
---
 atr/tasks/vote.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/atr/tasks/vote.py b/atr/tasks/vote.py
index 7324ad3..f49692e 100644
--- a/atr/tasks/vote.py
+++ b/atr/tasks/vote.py
@@ -68,7 +68,8 @@ async def _initiate_core_logic(args: Initiate) -> dict[str, Any]:
     _LOGGER.info("Starting initiate_core")
 
     # Validate arguments
-    if not args.email_to.endswith("@apache.org") or args.email_to.endswith(".apache.org"):
+    if not (args.email_to.endswith("@apache.org") or args.email_to.endswith(".apache.org")):
+        _LOGGER.error(f"Invalid destination email address: {args.email_to}")
         raise VoteInitiationError("Invalid destination email address")
 
     async with db.session() as data:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org