From 40893183438e6dadb41f4a0b96fa7faac6517c14 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 9 May 2022 08:24:04 +0100 Subject: [PATCH] Don't print a warning until the account is unusable --- handler/sinks/nordigen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/sinks/nordigen.py b/handler/sinks/nordigen.py index 3778787..5d43086 100644 --- a/handler/sinks/nordigen.py +++ b/handler/sinks/nordigen.py @@ -293,12 +293,12 @@ class Nordigen(util.Base): sort_code = parsed["bban"][0:6] account_number = parsed["bban"][6:] if "ownerName" not in parsed: - self.log.warning(f"No owner name in parsed, cannot use: {account_id}") ownernames = self.get_ownernames() if account_id in ownernames: parsed["ownerName"] = ownernames[account_id] self.log.info(f"Found supplementary owner name for {account_id}: {ownernames[account_id]}") else: + self.log.error(f"No owner name in parsed, cannot use: {account_id}") return False recipient = parsed["ownerName"] del parsed["bban"]