Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion fints/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,13 @@ def get_transactions(self, account: SEPAAccount, start_date: datetime.date = Non
return self._get_transactions_mt940(dialog, hkkaz, account, start_date, end_date, include_pending)
except FinTSUnsupportedOperation:
hkcaz = self._find_highest_supported_command(HKCAZ1)
booked_streams, pending_streams = self._get_transactions_xml(dialog, hkcaz, account, start_date, end_date)
response = self._get_transactions_xml(dialog, hkcaz, account, start_date, end_date)

# If a TAN is required, exit early
if isinstance(response, NeedTANResponse):
return response

booked_streams, pending_streams = response
transactions = []
for s in booked_streams:
transactions += [Transaction(t) for t in camt053_to_dict(s)]
Expand Down