Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion datashuttle/configs/load_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ def convert_str_and_pathlib_paths(
for path_key in canonical_configs.keys_str_on_file_but_path_in_class():
value = config_dict[path_key]

if value:
if value is not None:
if value == "":
utils.log_and_raise_error(
f"{path_key} cannot be an empty string.",
ValueError,
)

if direction == "str_to_path":
config_dict[path_key] = Path(value)

Expand Down
Loading