From fee2d0b47e206022841372617631ca403458e3d3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 5 May 2021 10:31:35 +0100 Subject: [PATCH] Check that local gpg key exists --- pgp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pgp.py b/pgp.py index 9b18c8cc3..19a1d0f42 100644 --- a/pgp.py +++ b/pgp.py @@ -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