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

4
pgp.py
View File

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