mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
handle exceptions raised if trezor is not found
This commit is contained in:
parent
20f93f7df0
commit
57e50ee326
2 changed files with 10 additions and 2 deletions
|
@ -421,7 +421,11 @@ class InstallWizard(QDialog):
|
||||||
wallet.add_master_public_key("remote/", xpub2)
|
wallet.add_master_public_key("remote/", xpub2)
|
||||||
|
|
||||||
elif action == 'create_accounts':
|
elif action == 'create_accounts':
|
||||||
wallet.create_accounts(password)
|
try:
|
||||||
|
wallet.create_accounts(password)
|
||||||
|
except BaseException as e:
|
||||||
|
QMessageBox.information(None, _('Error'), str(e), _('OK'))
|
||||||
|
return
|
||||||
self.waiting_dialog(wallet.synchronize)
|
self.waiting_dialog(wallet.synchronize)
|
||||||
|
|
||||||
elif action == 'create_cold_seed':
|
elif action == 'create_cold_seed':
|
||||||
|
|
|
@ -70,7 +70,11 @@ class Plugin(BasePlugin):
|
||||||
|
|
||||||
def installwizard_restore(self, wizard, storage):
|
def installwizard_restore(self, wizard, storage):
|
||||||
wallet = TrezorWallet(storage)
|
wallet = TrezorWallet(storage)
|
||||||
wallet.create_accounts(None)
|
try:
|
||||||
|
wallet.create_accounts(None)
|
||||||
|
except BaseException as e:
|
||||||
|
QMessageBox.information(None, _('Error'), str(e), _('OK'))
|
||||||
|
return
|
||||||
return wallet
|
return wallet
|
||||||
|
|
||||||
def send_tx(self, tx):
|
def send_tx(self, tx):
|
||||||
|
|
Loading…
Add table
Reference in a new issue