Commit 90cf076a authored by Philipp Hörist's avatar Philipp Hörist

Don't assume Local account will be always there

parent bc2b5afd
Pipeline #5990 passed with stages
in 3 minutes and 52 seconds
......@@ -396,8 +396,9 @@ def get_accounts_sorted():
'''
account_list = config.get_per('accounts')
account_list.sort(key=str.lower)
account_list.remove('Local')
account_list.insert(0, 'Local')
if 'Local' in account_list:
account_list.remove('Local')
account_list.insert(0, 'Local')
return account_list
def get_enabled_accounts_with_labels(exclude_local=True, connected_only=False,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment