From 69be4627bcd66031e170eb2e1a8cc352e299eef0 Mon Sep 17 00:00:00 2001 From: edmondsgarrett <43251554+edmondsgarrett@users.noreply.github.com> Date: Fri, 5 Jan 2024 12:40:07 -0600 Subject: [PATCH] Check for missing values on contacts table (#258) * Check for missing values on contacts table * Remove None checks from all contact fields but phone number --- apcd-cms/src/apps/utils/registrations_data_formatting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apcd-cms/src/apps/utils/registrations_data_formatting.py b/apcd-cms/src/apps/utils/registrations_data_formatting.py index c36f6365..8abf8300 100644 --- a/apcd-cms/src/apps/utils/registrations_data_formatting.py +++ b/apcd-cms/src/apps/utils/registrations_data_formatting.py @@ -62,7 +62,7 @@ def format_phone_number(num): 'notif': reg_cont[2], 'role': reg_cont[3], 'name': reg_cont[4], - 'phone': format_phone_number(reg_cont[5]), + 'phone': format_phone_number(reg_cont[5]) if reg_cont[5] else None, 'email': reg_cont[6], } def _set_modal_content(reg, reg_ent, reg_cont, org_types):