]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Fix pending transactions v4.2.2
authorRaphael Michel <michel@rami.io>
Mon, 4 Nov 2024 15:10:28 +0000 (16:10 +0100)
committerRaphael Michel <michel@rami.io>
Mon, 4 Nov 2024 15:10:28 +0000 (16:10 +0100)
fints/client.py

index aca9606866a77963c1735142393b0d0e394d3534..a8c9efffd6e318058dd5f1dcc262daf45554d462 100644 (file)
@@ -540,7 +540,7 @@ class FinTS3Client:
                 ),
                 lambda responses: mt940_to_array(''.join(
                     [seg.statement_booked.decode('iso-8859-1') for seg in responses] +
-                    ([seg.statement_pending.decode('iso-8859-1') for seg in responses] if include_pending else [])
+                    ([seg.statement_pending.decode('iso-8859-1') for seg in responses] if include_pending and seg.statement_pending else [])
             )),
                 'HIKAZ',
                 # Note 1: Some banks send the HIKAZ data in arbitrary splits.