[FIX] ebics download: execute always client.confirm_download()

Certain banks expect always a confirm_download, also in case of success=False.
This commit is contained in:
Luc De Meyer
2026-03-25 11:55:20 +01:00
parent 15be0b2a06
commit 09b35600ff

View File

@@ -237,8 +237,8 @@ class EbicsXfer(models.TransientModel):
date_from = self.date_from and self.date_from.isoformat() or None
date_to = self.date_to and self.date_to.isoformat() or None
for df in download_formats:
try:
success = False
try:
if df.order_type == "BTD":
btf = BusinessTransactionFormat(
df.btf_service,
@@ -321,8 +321,8 @@ class EbicsXfer(models.TransientModel):
order_type=df.order_type,
)
tb = "".join(format_exception(*exc_info()))
self.note += "\n%s" % tb
else:
self.note += f"\n{tb}"
finally:
# mark received data so that it is not included in further
# downloads
trans_id = client.last_trans_id