Typo in logger

This commit is contained in:
zandercymatics 2023-11-03 12:45:59 -06:00
parent 59cb3cc0de
commit 501aa59c9e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 6 additions and 5 deletions

View file

@ -142,9 +142,10 @@ class Command(BaseCommand):
logger.info("Reading contacts data file %s", contacts_filename)
with open(contacts_filename, "r") as contacts_file:
for row in csv.reader(contacts_file, delimiter=sep):
user_id = row[0]
user_email = row[6]
user_emails_dictionary[user_id] = user_email
if row != []:
user_id = row[0]
user_email = row[6]
user_emails_dictionary[user_id] = user_email
logger.info("Loaded emails for %d users", len(user_emails_dictionary))
return user_emails_dictionary