From ae32ca0f0e15a69d41a155b1cefa1eec18408853 Mon Sep 17 00:00:00 2001 From: Philippe Dumonet Date: Sat, 6 Jun 2020 22:10:11 +0200 Subject: [PATCH] Add compatibility to old transactions --- monero/backends/jsonrpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monero/backends/jsonrpc.py b/monero/backends/jsonrpc.py index 11e9522..82ec4fb 100644 --- a/monero/backends/jsonrpc.py +++ b/monero/backends/jsonrpc.py @@ -134,7 +134,7 @@ class JSONRPCDaemon(object): txs = [] for tx in res.get('txs', []): as_json = json.loads(tx['as_json']) - fee = as_json['rct_signatures'].get('txnFee') + fee = as_json.get('rct_signatures', {}).get('txnFee') txs.append(Transaction( hash=tx['tx_hash'], fee=from_atomic(fee) if fee else None,