Bugfix: not all keystores have labels

This commit is contained in:
Peter D. Gray 2019-06-24 13:36:41 -04:00
parent 57783ec158
commit a9e3ca47e1
No known key found for this signature in database
GPG Key ID: F0E6CC6AFC16CF7B

View File

@ -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}'