mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 10:15:20 +00:00
kivy: fix crash in show_private_key
This commit is contained in:
parent
786f9ce7ff
commit
c46f219d25
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue