Skip to content

Commit

Permalink
Correctly handle null value for ropeFolder config (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
osiewicz authored Feb 6, 2025
1 parent cf2d16d commit 0508463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylsp/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _rope_project_builder(self, rope_config):
# TODO: we could keep track of dirty files and validate only those
if self.__rope is None or self.__rope_config != rope_config:
rope_folder = rope_config.get("ropeFolder")
if rope_folder:
if "ropeFolder" in rope_config:
self.__rope = Project(self._root_path, ropefolder=rope_folder)
else:
self.__rope = Project(self._root_path)
Expand Down

0 comments on commit 0508463

Please sign in to comment.