Allow transactions with no ID to be sent on IRC

This commit is contained in:
Mark Veidemanis 2022-04-24 19:22:00 +01:00
parent f78c351e75
commit 38c82862a4
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 4 additions and 1 deletions

View File

@ -810,7 +810,10 @@ class IRCCommands(object):
account_id = spl[1]
transactions = tx.sinks.nordigen.get_transactions(account_id)
for transaction in transactions:
txid = transaction["transaction_id"]
if "transaction_id" in transaction:
txid = transaction["transaction_id"]
else:
txid = "not_set"
timestamp = transaction["timestamp"]
amount = transaction["amount"]
currency = transaction["currency"]