Check that local gpg key exists

main
Bob Mottram 2021-05-05 10:31:35 +01:00
parent 29c7287f8f
commit fee2d0b47e
1 changed files with 3 additions and 1 deletions

2
pgp.py
View File

@ -362,6 +362,8 @@ def hasLocalPGPkey() -> bool:
homeDir = str(Path.home())
gpgDir = homeDir + '/.gnupg'
if os.path.isdir(gpgDir):
keyId = _pgpLocalPublicKeyId()
if keyId:
return True
return False