Currently we return a 500-level failure if a user attempts to upload GPG signatures via Trusted Publishing, because we assume there is a request.user:
|
send_gpg_signature_uploaded_email( |
|
request, request.user, project_name=project.name |
|
) |
However this might be None if Trusted Publishing is used, in which case the email should probably go to all owners instead.
Reported in #14927, this is https://python-software-foundation.sentry.io/share/issue/4680dcbcc9d348109307d6dc0d03f900/.