From e579ab9497065aad3c9d3e4545bbda61cf0f9079 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 11 Mar 2021 20:48:02 +0000 Subject: [PATCH] Check for directory --- pgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgp.py b/pgp.py index 70bd93129..1720f75bf 100644 --- a/pgp.py +++ b/pgp.py @@ -354,7 +354,7 @@ def hasLocalPGPkey() -> bool: """ homeDir = str(Path.home()) gpgDir = homeDir + '/.gnupg' - if os.path.isfile(gpgDir): + if os.path.isdir(gpgDir): return True return False