From e8ddb8055f306d74c5532be90a6c3120df198f46 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 4 Dec 2023 16:21:12 +0100 Subject: [PATCH] forklift/legacy: fallback on all project users for GPG email (#15004) Signed-off-by: William Woodruff --- warehouse/forklift/legacy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/warehouse/forklift/legacy.py b/warehouse/forklift/legacy.py index 7c46365cee6e..c3de86016b99 100644 --- a/warehouse/forklift/legacy.py +++ b/warehouse/forklift/legacy.py @@ -1142,7 +1142,9 @@ def file_upload(request): "provided signature has been discarded." ) send_gpg_signature_uploaded_email( - request, request.user, project_name=project.name + request, + request.user if request.user else project.users, + project_name=project.name, ) # TODO: This should be handled by some sort of database trigger or