Skip to content

Commit

Permalink
Fixed boolean operator on check exist for YAML config
Browse files Browse the repository at this point in the history
  • Loading branch information
david-vectara committed Oct 25, 2024
1 parent e7cfa2b commit f66162b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vectara/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def _build_config_path(self, expect_exist=True) -> Path:
self.logger.info(f"Loading configuration from users home directory [{home_str}]")

looking_for = home_path / CONFIG_FILE_NAME
if expect_exist and not path.exists(looking_for) or not path.isfile(looking_for):
if expect_exist is True and not path.exists(looking_for) or not path.isfile(looking_for):
raise TypeError(f"Unable to find configuration file [{CONFIG_FILE_NAME}]"
f" within home directory [{home_str}]")
return looking_for
Expand Down

0 comments on commit f66162b

Please sign in to comment.