diff --git a/modules/tools/password-store/autoload.el b/modules/tools/password-store/autoload.el index 0aa8e8657..9317b2310 100644 --- a/modules/tools/password-store/autoload.el +++ b/modules/tools/password-store/autoload.el @@ -12,11 +12,12 @@ ;;;###autoload (defun +pass-get-field (entry fields) - (if-let (data (if (listp entry) entry (auth-pass-parse-entry entry))) - (cl-loop for key in (doom-enlist fields) - when (assoc key data) - return (cdr it)) - (error "Couldn't find entry: %s" entry))) + (unless noninteractive + (if-let (data (if (listp entry) entry (auth-pass-parse-entry entry))) + (cl-loop for key in (doom-enlist fields) + when (assoc key data) + return (cdr it)) + (error "Couldn't find entry: %s" entry)))) ;;;###autoload (defun +pass-get-user (entry)