Skip to content

Commit

Permalink
bugfix lower name
Browse files Browse the repository at this point in the history
  • Loading branch information
melgazar9 committed Feb 21, 2024
1 parent 5e2e2f6 commit 638b47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_mongodb/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def recursive_replace_empty_in_dict(dct):
for key, value in dct.items():
if value in [-math.inf, math.inf, math.nan]:
dct[key] = None
elif lower(str(value)) in ['none', 'nan', '', 'empty', ' ', 'null']:
elif str(value).lower() in ['none', 'nan', '', 'empty', ' ', 'null']:
dct[key] = None
elif isinstance(value, list):
for i, item in enumerate(value):
Expand Down

0 comments on commit 638b47f

Please sign in to comment.