kivy: fix crash in show_private_key

This commit is contained in:
ThomasV 2017-11-10 11:12:29 +01:00
parent 786f9ce7ff
commit c46f219d25
1 changed files with 2 additions and 0 deletions

View File

@ -944,6 +944,8 @@ class ElectrumWindow(App):
def export_private_keys(self, pk_label, addr):
def show_private_key(addr, pk_label, password):
if self.wallet.has_password() and password is None:
return
key = str(self.wallet.export_private_key(addr, password)[0])
pk_label.data = key
self.protected(_("Enter your PIN code in order to decrypt your private key"), show_private_key, (addr, pk_label))