Skip to content

Commit 19fafd7

Browse files
committed
Fix for zip null
1 parent 959e4b6 commit 19fafd7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

functions/gcs/gcs_location_matching_trigger.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def _verify_fields(columns, validation_fields):
9494

9595

9696
def _clean_zip(zip_code):
97+
if zip_code is None:
98+
return None
9799
zip_code = str(zip_code)
98100
if zip_code is None or len(zip_code) == 0:
99101
return zip_code
@@ -767,6 +769,7 @@ def process_location_matching(data, context):
767769
# raise e
768770

769771

770-
process_location_matching({'name': 'dviorel@inmarket.com/simple_list___no_mv_gcs.txt'}, None)
772+
# process_location_matching({'name': 'dviorel@inmarket.com/simple_list___no_mv_gcs.txt'}, None)
773+
process_location_matching({'name': 'dviorel@inmarket.com/Matching_list_nozip___no_mv_gcs.txt'}, None)
771774
# process_location_matching({'name': 'dviorel@inmarket.com/walmart_list_with_match_issue___no_mv_gcs.txt'}, None)
772775
# _send_mail('dviorel@inmarket.com', ['dviorel@inmarket.com'], 'My test', 'The body')

0 commit comments

Comments
 (0)