Skip to content

Commit

Permalink
Only lower if clean_key is instance of str
Browse files Browse the repository at this point in the history
  • Loading branch information
vmatt authored Nov 18, 2024
1 parent 6d8a4c7 commit f6c7bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepdiff/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def _get_clean_to_keys_mapping(self, keys, level):
clean_key = KEY_TO_VAL_STR.format(type_, clean_key)
else:
clean_key = key
if self.ignore_string_case:
if self.ignore_string_case and isinstance(clean_key, str):
clean_key = clean_key.lower()
if clean_key in result:
logger.warning(('{} and {} in {} become the same key when ignore_numeric_type_changes'
Expand Down

0 comments on commit f6c7bcb

Please sign in to comment.