Allow blank accounts config

fsp_feeds
Tyler Goodlet 2021-09-05 14:51:50 -04:00
parent c5191d66cb
commit c86c4218ce
1 changed files with 4 additions and 3 deletions

View File

@ -114,8 +114,9 @@ def load_accounts() -> dict[str, Optional[str]]:
if section is None:
log.warning('No accounts config found?')
for brokername, account_labels in section.items():
for name, value in account_labels.items():
accounts[f'{brokername}.{name}'] = value
else:
for brokername, account_labels in section.items():
for name, value in account_labels.items():
accounts[f'{brokername}.{name}'] = value
return accounts