mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Update file validate.py
This commit is contained in:
parent
eca8bbf515
commit
f67c74b08f
1 changed files with 7 additions and 1 deletions
|
@ -107,7 +107,13 @@ 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(
|
||||
|
|
Loading…
Add table
Reference in a new issue