Merge pull request #47 from Noviat/16.0

Syncing from upstream Noviat/account_ebics (16.0)
This commit is contained in:
braintec 2024-09-22 01:11:51 +02:00 committed by GitHub
commit 00ba156b38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -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/",

View File

@ -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: