Notify if no account information found

This commit is contained in:
Mark Veidemanis 2022-04-19 21:03:11 +01:00
parent 0ba5cc38b3
commit 36b9421846
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ class Sinks(util.Base):
:param account_infos: dict of dicts of account information
:param account_infos: dict
"""
if not account_infos:
self.log.error(f"No accounts provided for {subclass}") #
return
for bank, accounts in account_infos.items():
for index, account in enumerate(list(accounts)):
if "account_number" not in account: