From 51a811c16526691452fc6ca960222fd6ff3b4c66 Mon Sep 17 00:00:00 2001 From: nolan Date: Mon, 26 Feb 2024 11:40:59 -0800 Subject: [PATCH] check for empty string --- lib_afc_mosaic/universe_map_file.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib_afc_mosaic/universe_map_file.py b/lib_afc_mosaic/universe_map_file.py index 31b08bd..598a9c7 100644 --- a/lib_afc_mosaic/universe_map_file.py +++ b/lib_afc_mosaic/universe_map_file.py @@ -381,7 +381,10 @@ class AFCMUniverseMapFile: amplify_key, mapping[amplify_key]) - if new_row['UID'].strip() in [None, 'n/a', '']: + if new_row['UID'] is None: + new_row['UID'] = str(uuid.uuid4()) + + if new_row['UID'].strip() in ['n/a', '']: new_row['UID'] = str(uuid.uuid4()) new_row['Cell_Phone'] = formatted_number