From 36b9421846fb6a1b3d1e46a594fe82dfabe48982 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 19 Apr 2022 21:03:11 +0100 Subject: [PATCH] Notify if no account information found --- handler/sinks/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handler/sinks/__init__.py b/handler/sinks/__init__.py index 70e9661..a0a6f92 100644 --- a/handler/sinks/__init__.py +++ b/handler/sinks/__init__.py @@ -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: