Allow blank accounts config
parent
c5191d66cb
commit
c86c4218ce
|
@ -114,8 +114,9 @@ def load_accounts() -> dict[str, Optional[str]]:
|
||||||
if section is None:
|
if section is None:
|
||||||
log.warning('No accounts config found?')
|
log.warning('No accounts config found?')
|
||||||
|
|
||||||
for brokername, account_labels in section.items():
|
else:
|
||||||
for name, value in account_labels.items():
|
for brokername, account_labels in section.items():
|
||||||
accounts[f'{brokername}.{name}'] = value
|
for name, value in account_labels.items():
|
||||||
|
accounts[f'{brokername}.{name}'] = value
|
||||||
|
|
||||||
return accounts
|
return accounts
|
||||||
|
|
Loading…
Reference in New Issue