ebics_xfer - fix for BTU with empty suffix

This commit is contained in:
Luc De Meyer 2023-03-07 16:39:21 +01:00
parent 51e4f00404
commit f1f9cfd2f8

View File

@ -152,7 +152,7 @@ class EbicsXfer(models.TransientModel):
) )
if len(upload_formats) > 1: if len(upload_formats) > 1:
upload_formats = upload_formats.filtered( 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: if len(upload_formats) == 1:
self.format_id = upload_formats self.format_id = upload_formats