Skip to content

Commit 7bc7b8c

Browse files
fix(config): Check both for empty string and None
1 parent 1cb8a97 commit 7bc7b8c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/gallia/command/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,9 @@ def attributes_from_config(cls, config: Config, source: str = "config file") ->
438438
for name, info in original_infos.items():
439439
if isinstance(info, ConfigArgFieldInfo):
440440
config_attribute = (
441-
f"{info.config_section}.{name}" if info.config_section != "" else name
441+
f"{info.config_section}.{name}"
442+
if info.config_section not in ("", None)
443+
else name
442444
)
443445

444446
if (value := config.get_value(config_attribute)) is not None:

0 commit comments

Comments
 (0)