don't try to add preloaded username if it is empty

This commit is contained in:
Kevin Froman 2021-01-18 05:06:18 +00:00
parent 74db4d2d9d
commit cb17270512

View File

@ -34,6 +34,8 @@ def on_onboard(api, data=None):
for entry in username_and_keys: for entry in username_and_keys:
username, key = entry.split(',') username, key = entry.split(',')
username = username.strip() username = username.strip()
if not username:
continue
key = key.strip() key = key.strip()
user = contactmanager.ContactManager(key, saveUser=True) user = contactmanager.ContactManager(key, saveUser=True)
user.set_info('name', username) user.set_info('name', username)