Skip to content

Commit

Permalink
Handle explicit False values in config parser
Browse files Browse the repository at this point in the history
Previously, False values were treated like None and removed from the options. This update ensures False is explicitly set as "False" in the configuration.
  • Loading branch information
cbusillo committed Jul 5, 2024
1 parent 4c64e6a commit 5865b23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bd_to_avp/modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ def save_config_to_file(self) -> None:
else:
if value:
config_parser.set("Options", key, str(value))
elif value is False:
config_parser.set("Options", key, "False")
else:
config_parser.remove_option("Options", key)

Expand Down

0 comments on commit 5865b23

Please sign in to comment.