Skip to content

Commit b19331f

Browse files
committed
Catch any possible error whe trying to get docs for completion items in Rope
1 parent de47614 commit b19331f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pylsp/plugins/rope_completion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ def pylsp_settings():
1717

1818

1919
def _resolve_completion(completion, data):
20+
# pylint: disable=broad-except
2021
try:
2122
doc = data.get_doc()
22-
except AttributeError:
23+
except Exception:
2324
doc = ""
2425
completion['detail'] = '{0} {1}'.format(data.scope or "", data.name)
2526
completion['documentation'] = doc

0 commit comments

Comments
 (0)