From 638b47f4269c727aeb26c7189befffb566a363d2 Mon Sep 17 00:00:00 2001 From: melgazar9 Date: Wed, 21 Feb 2024 16:32:14 -0600 Subject: [PATCH] bugfix lower name --- tap_mongodb/streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_mongodb/streams.py b/tap_mongodb/streams.py index 30cf397..5e33ed1 100644 --- a/tap_mongodb/streams.py +++ b/tap_mongodb/streams.py @@ -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):