Skip to content

Commit 3397859

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gallia/command/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ 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}" if info.config_section else name
442442
)
443443

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

0 commit comments

Comments
 (0)