Skip to content

Commit 80afb86

Browse files
Prevent creating empty .ropeproject with null conf
1 parent 8c96441 commit 80afb86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp/workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _rope_project_builder(self, rope_config):
7878
# TODO: we could keep track of dirty files and validate only those
7979
if self.__rope is None or self.__rope_config != rope_config:
8080
rope_folder = rope_config.get("ropeFolder")
81-
if "ropeFolder" in rope_config:
81+
if rope_folder is not None:
8282
self.__rope = Project(self._root_path, ropefolder=rope_folder)
8383
else:
8484
self.__rope = Project(self._root_path)

0 commit comments

Comments
 (0)