Skip to content

Commit

Permalink
Encode in json only dicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed May 28, 2023
1 parent c790c1e commit 391439e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benedict/serializers/ini.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def encode(self, d, **kwargs):
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)
Expand Down

0 comments on commit 391439e

Please sign in to comment.