From 42bb2cb349eef7cc0878339048368a0a247c10b2 Mon Sep 17 00:00:00 2001 From: Nok Lam Chan Date: Thu, 4 May 2023 12:27:06 +0100 Subject: [PATCH] Fix OmegaConfigLoader when file is empty --- kedro/config/omegaconf_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kedro/config/omegaconf_config.py b/kedro/config/omegaconf_config.py index ca1dbc2173..3191b13750 100644 --- a/kedro/config/omegaconf_config.py +++ b/kedro/config/omegaconf_config.py @@ -195,7 +195,7 @@ def __getitem__(self, key) -> Dict[str, Any]: if not config: raise MissingConfigException( f"No files of YAML or JSON format found in {base_path} or {env_path} matching" - f" the glob pattern(s): {[*self.config_patterns[key]]}" + f" the glob pattern(s): {[*self.config_patterns[key]]}, or the files are empty." ) return config