mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
Leave go live user empty if it's not populated in spreadsheet
This commit is contained in:
@@ -827,7 +827,10 @@ def populate_go_live(file_name):
|
|||||||
go_live_date = datetime.strptime(row[8], '%d/%m/%Y') + timedelta(hours=12)
|
go_live_date = datetime.strptime(row[8], '%d/%m/%Y') + timedelta(hours=12)
|
||||||
print(service_id, go_live_email, go_live_date)
|
print(service_id, go_live_email, go_live_date)
|
||||||
try:
|
try:
|
||||||
go_live_user = get_user_by_email(go_live_email)
|
if go_live_email:
|
||||||
|
go_live_user = get_user_by_email(go_live_email)
|
||||||
|
else:
|
||||||
|
go_live_user = None
|
||||||
except NoResultFound:
|
except NoResultFound:
|
||||||
print("No user found for email address: ", go_live_email)
|
print("No user found for email address: ", go_live_email)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user