From 38c82862a455a38373109beccf3199a7e98a51aa Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 24 Apr 2022 19:22:00 +0100 Subject: [PATCH] Allow transactions with no ID to be sent on IRC --- handler/ux/commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/handler/ux/commands.py b/handler/ux/commands.py index ce0a627..675f897 100644 --- a/handler/ux/commands.py +++ b/handler/ux/commands.py @@ -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"]