Skip to content

Commit

Permalink
Fix ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Mar 17, 2021
1 parent b445ea4 commit 9febb78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lsp-grammarly.el
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ For argument CALLBACK, see object `lsp--client' description."
(defun lsp-grammarly--init (&rest _)
"Get Grammarly API ready."
(unless (lsp-grammarly-login-p)
(let ((pass (keytar-get-password lsp-grammarly--cookie-key lsp-grammarly--account)))
(let ((pass (ignore-errors
(keytar-get-password lsp-grammarly--cookie-key lsp-grammarly--account))))
(when pass
(setq lsp-grammarly--password-string pass
lsp-grammarly--password (ignore-errors (json-read-from-string pass)))))
Expand Down

0 comments on commit 9febb78

Please sign in to comment.