From 942e578c0fab09e99c4ceda1fd2e4886c45a519d Mon Sep 17 00:00:00 2001 From: Remi - Le Filament <30716308+remi-filament@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:49:25 +0200 Subject: [PATCH 1/2] [FIX] handle string notifications as warnings --- account_ebics/models/ebics_file.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/account_ebics/models/ebics_file.py b/account_ebics/models/ebics_file.py index 15ee286..9035535 100644 --- a/account_ebics/models/ebics_file.py +++ b/account_ebics/models/ebics_file.py @@ -253,14 +253,17 @@ class EbicsFile(models.Model): errors = [] warnings = [] for notif in notifications: - if notif["type"] == "error": + if isinstance(notif, dict) and notif["type"] == "error": error_cnt += 1 parts = [notif[k] for k in notif if k in ("message", "details")] errors.append("\n".join(parts)) - elif notif["type"] == "warning": + elif isinstance(notif, dict) and notif["type"] == "warning": warning_cnt += 1 parts = [notif[k] for k in notif if k in ("message", "details")] warnings.append("\n".join(parts)) + elif isinstance(notif, str): + warning_cnt += 1 + warnings.append(notif + "\n") self.note_process += _("Process file %(fn)s results:", fn=self.name) if error_cnt: From 277452a2138fa24dade12686afbdd34eebb53d74 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sat, 21 Sep 2024 10:51:08 +0200 Subject: [PATCH 2/2] [IMP] account_ebics 16.0 : bump module version Bump module version after merge of https://github.com/Noviat/account_ebics/pull/111 --- account_ebics/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_ebics/__manifest__.py b/account_ebics/__manifest__.py index c29ada6..083987d 100644 --- a/account_ebics/__manifest__.py +++ b/account_ebics/__manifest__.py @@ -3,7 +3,7 @@ { "name": "EBICS banking protocol", - "version": "16.0.1.10.2", + "version": "16.0.1.10.3", "license": "LGPL-3", "author": "Noviat", "website": "https://www.noviat.com/",