Encode in json only dicts.

This commit is contained in:
Fabio Caccamo 2023-05-28 11:29:57 +02:00
parent c790c1e7f9
commit 391439e97c
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class INISerializer(AbstractSerializer):
section = key
parser.add_section(section)
for option_key, option_value in value.items():
if type_util.is_collection(option_value):
if type_util.is_dict(option_value):
parser.set(section, option_key, self._json.encode(option_value))
else:
parser.set(section, option_key, option_value)