Skip to content

Commit 6c5f44d

Browse files
authored
Prevent faulty third-party plugins to crash the server (#154)
1 parent 2f7a13e commit 6c5f44d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp/config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, root_uri, init_opts, process_id, capabilities):
5050
for entry_point in pkg_resources.iter_entry_points(PYLSP):
5151
try:
5252
entry_point.load()
53-
except ImportError as e:
53+
except Exception as e: # pylint: disable=broad-except
5454
log.warning("Failed to load %s entry point '%s': %s", PYLSP, entry_point.name, e)
5555
self._pm.set_blocked(entry_point.name)
5656

0 commit comments

Comments
 (0)