Skip to content

Commit 0508463

Browse files
authored
Correctly handle null value for ropeFolder config (#604)
1 parent cf2d16d commit 0508463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp/workspace.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _rope_project_builder(self, rope_config):
7777
# TODO: we could keep track of dirty files and validate only those
7878
if self.__rope is None or self.__rope_config != rope_config:
7979
rope_folder = rope_config.get("ropeFolder")
80-
if rope_folder:
80+
if "ropeFolder" in rope_config:
8181
self.__rope = Project(self._root_path, ropefolder=rope_folder)
8282
else:
8383
self.__rope = Project(self._root_path)

0 commit comments

Comments
 (0)