From cb17270512283d905b78f3084ee2ba10998314ba Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 18 Jan 2021 05:06:18 +0000 Subject: [PATCH] don't try to add preloaded username if it is empty --- static-data/default-plugins/usernames/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static-data/default-plugins/usernames/main.py b/static-data/default-plugins/usernames/main.py index 9c88f6ef..6ae4d97a 100755 --- a/static-data/default-plugins/usernames/main.py +++ b/static-data/default-plugins/usernames/main.py @@ -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)