Skip to content

Commit 200776a

Browse files
committed
allow error
1 parent 791bd42 commit 200776a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-ltex.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ This is use to active language server and check if language server's existence."
276276
(tar (car gz-files))
277277
(fn (file-name-nondirectory (lsp-ltex--s-replace ".tar.gz" "" tar))))
278278
(lsp-ltex--s-replace "ltex-ls-" "" fn))
279-
(gethash "ltex-ls" (json-parse-string (shell-command-to-string "ltex-ls -V")))))
279+
(ignore-errors (gethash "ltex-ls" (json-parse-string (shell-command-to-string "ltex-ls -V"))))))
280280

281281
(defun lsp-ltex--latest-version ()
282282
"Return the latest version from remote repository."

0 commit comments

Comments
 (0)