Commit c25a4a0a authored by Philipp Hörist's avatar Philipp Hörist

Fallback to account name when label is missing

Fixes #9236
parent 0750d6f6
......@@ -397,7 +397,8 @@ def get_enabled_accounts_with_labels(exclude_local=True):
accounts = []
for acc in connections:
if not exclude_local or acc != 'Local':
acc_label = config.get_per('accounts', acc, 'account_label')
acc_label = config.get_per(
'accounts', acc, 'account_label') or acc
accounts.append([acc, acc_label])
accounts.sort(key=lambda xs: str.lower(xs[1]))
return accounts
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