From 887cd4823c4a5507fb0c66e8110ced3dda04645c Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Tue, 7 Mar 2023 16:39:21 +0100 Subject: [PATCH] ebics_xfer - fix for BTU with empty suffix --- account_ebics/wizards/ebics_xfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_ebics/wizards/ebics_xfer.py b/account_ebics/wizards/ebics_xfer.py index c914cbf..5bc4a70 100644 --- a/account_ebics/wizards/ebics_xfer.py +++ b/account_ebics/wizards/ebics_xfer.py @@ -152,7 +152,7 @@ class EbicsXfer(models.TransientModel): ) if len(upload_formats) > 1: upload_formats = upload_formats.filtered( - lambda r: self.upload_fname.endswith(r.suffix) + lambda r: self.upload_fname.endswith(r.suffix or "") ) if len(upload_formats) == 1: self.format_id = upload_formats