fix cfonb return line bug

This commit is contained in:
Olivier Doucet authored and Luc De Meyer committed 2025-03-03 20:39:09 +01:00
1 parent 236b356b5b
commit 5cace2784c
1 file changed
+1 -2
+1 -2
View File
@@ -369,8 +369,7 @@ class EbicsFile(models.Model):
Statements without transactions are removed.
"""
datas = []
file_data = base64.b64decode(self.data)
file_data.replace(b"\n", b"").replace(b"\r", b"")
file_data = base64.b64decode(self.data).replace(b"\n", b"").replace(b"\r", b"")
if len(file_data) % 120:
message = _(
"Incorrect CFONB120 file:\n"