Skip to content

Commit

Permalink
add str check (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed Dec 12, 2022
1 parent 1e93ace commit 35cd07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/run_defaults_diff.py
Expand Up @@ -155,7 +155,7 @@ def get_flat_dict(defaults_json):
if type(v) is dict:
output.update(get_flat_dict(v))
else:
if isinstance(v, Iterable):
if isinstance(v, Iterable) and not isinstance(v, str):
if min(v) == 0 and max(v) == 0:
v = [0]
output[k] = v
Expand Down

0 comments on commit 35cd07e

Please sign in to comment.