From a9e3ca47e189bcf0556703a4f2ca0c084638eb73 Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Mon, 24 Jun 2019 13:36:41 -0400 Subject: [PATCH] Bugfix: not all keystores have labels --- electrum/gui/qt/main_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index ca6ebceca..2df032491 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -2230,7 +2230,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): if len(mpk_list) > 1: # only show the combobox if multiple master keys are defined def label(idx, ks): - if isinstance(self.wallet, Multisig_Wallet): + if isinstance(self.wallet, Multisig_Wallet) and hasattr(ks, 'label'): return _("cosigner") + f' {idx+1}: {ks.get_type_text()} {ks.label}' else: return _("keystore") + f' {idx+1}'