don't try to add preloaded username if it is empty
This commit is contained in:
parent
74db4d2d9d
commit
cb17270512
@ -34,6 +34,8 @@ def on_onboard(api, data=None):
|
||||
for entry in username_and_keys:
|
||||
username, key = entry.split(',')
|
||||
username = username.strip()
|
||||
if not username:
|
||||
continue
|
||||
key = key.strip()
|
||||
user = contactmanager.ContactManager(key, saveUser=True)
|
||||
user.set_info('name', username)
|
||||
|
Loading…
Reference in New Issue
Block a user