Notify if no account information found
This commit is contained in:
@@ -66,6 +66,9 @@ class Sinks(util.Base):
|
|||||||
:param account_infos: dict of dicts of account information
|
:param account_infos: dict of dicts of account information
|
||||||
:param account_infos: dict
|
: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 bank, accounts in account_infos.items():
|
||||||
for index, account in enumerate(list(accounts)):
|
for index, account in enumerate(list(accounts)):
|
||||||
if "account_number" not in account:
|
if "account_number" not in account:
|
||||||
|
|||||||
Reference in New Issue
Block a user