Skip to content
Snippets Groups Projects
Verified Commit 194f4534 authored by Dominik Schulz's avatar Dominik Schulz Committed by Leonidas Spyropoulos
Browse files

chore: expand PGP validation error message


Closes: #524

Co-author: Leonidas Spyropoulos <artafinde@archlinux.org>
Signed-off-by: default avatarLeonidas Spyropoulos <artafinde@archlinux.org>
parent 699fa127
No related branches found
No related tags found
No related merge requests found
Pipeline #122519 passed
......@@ -107,7 +107,14 @@ def invalid_homepage(HP: str = str(), **kwargs) -> None:
def invalid_pgp_key(K: str = str(), **kwargs) -> None:
if K and not util.valid_pgp_fingerprint(K):
raise ValidationError(["The PGP key fingerprint is invalid."])
raise ValidationError(
[
"The PGP key fingerprint is invalid. "
"Only full fingerprints are accepted. "
"Use `gpg --list-keys --fingerprint KEYID` to obtain a valid "
"fingerprint."
]
)
def invalid_ssh_pubkey(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment