diff options
Diffstat (limited to 'config_file')
| -rw-r--r-- | config_file/parsers/ini_parser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config_file/parsers/ini_parser.py b/config_file/parsers/ini_parser.py index 4e0922c..3c8f12f 100644 --- a/config_file/parsers/ini_parser.py +++ b/config_file/parsers/ini_parser.py @@ -60,6 +60,9 @@ class IniParser(BaseParser): if value is not None and not self.parsed_content.has_section(section): self.parsed_content.add_section(section) + if not isinstance(value, str): + value = str(value) + self.parsed_content.set(section, key, value) return True |