From 9b152186b68c71b6b5bc4c03d2717d892813b6f5 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 9 Mar 2022 22:15:27 +0200 Subject: [PATCH] Don't crash in wallet_display() with no blockchain source --- jmclient/jmclient/wallet_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/jmclient/wallet_utils.py b/jmclient/jmclient/wallet_utils.py index 7ab805e..f4445b2 100644 --- a/jmclient/jmclient/wallet_utils.py +++ b/jmclient/jmclient/wallet_utils.py @@ -518,7 +518,7 @@ def wallet_display(wallet_service, showprivkey, displayall=False, # This only applies to the external branch, because it only applies to addresses # displayed for user deposit. # It also does not apply to fidelity bond addresses which are created manually. - if address_type == BaseWallet.ADDRESS_TYPE_EXTERNAL: + if address_type == BaseWallet.ADDRESS_TYPE_EXTERNAL and wallet_service.bci is not None: wallet_service.bci.import_addresses(gap_addrs, wallet_service.get_wallet_name()) wallet_service.set_next_index(m, address_type, unused_index)