From 271e7689ae61be52e6967afc81f5723290eb5a0f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 25 Sep 2018 10:29:57 -0400 Subject: [PATCH] Don't error when no gpg keys exist --- modules/config/default/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 699581137..7b8539c96 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -24,7 +24,7 @@ (or epa-file-encrypt-to ;; Collect all public key IDs with your username (unless (string-empty-p user-full-name) - (cl-loop for key in (epg-list-keys (epg-make-context) user-full-name) + (cl-loop for key in (ignore-errors (epg-list-keys (epg-make-context) user-full-name)) collect (epg-sub-key-id (car (epg-key-sub-key-list key))))) user-mail-address) ;; With GPG 2.1, this forces gpg-agent to use the Emacs minibuffer to