From f66162bbc4115a5e4ff5986db1dd6937041bf311 Mon Sep 17 00:00:00 2001 From: David Levy Date: Fri, 25 Oct 2024 16:22:59 +1100 Subject: [PATCH] Fixed boolean operator on check exist for YAML config --- src/vectara/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vectara/config/config.py b/src/vectara/config/config.py index a3dcd78..190a1b0 100644 --- a/src/vectara/config/config.py +++ b/src/vectara/config/config.py @@ -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