diff --git a/bundled/tool/lsp_jsonrpc.py b/bundled/tool/lsp_jsonrpc.py index 4e8fb1f0..4261a10c 100644 --- a/bundled/tool/lsp_jsonrpc.py +++ b/bundled/tool/lsp_jsonrpc.py @@ -181,7 +181,8 @@ def _monitor_process(): del self._processes[workspace] rpc = self._rpc.pop(workspace) rpc.close() - except: # pylint: disable=bare-except + except KeyError: + # KeyError is sufficient because the process is already dead pass self._thread_pool.submit(_monitor_process)