We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 966e867 commit df178f9Copy full SHA for df178f9
1 file changed
src/tr/config.py
@@ -121,7 +121,7 @@ def _read_config_file(file_path: str) -> ConfigFileModel:
121
if ext == ".json":
122
data: dict = json.load(open(file_path, 'r'))
123
elif ext == ".yaml" or ext == ".yml":
124
- data: dict = yaml.safe_load(open(file_path, 'r'))
+ data: dict = yaml.safe_load(open(file_path, 'r')) or {}
125
else:
126
raise TaskException("Unsupported configuration file format")
127
return validate_config_file_schema(data)
0 commit comments