mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
hww wizard: better handle UserFacingException in one case
E | gui.qt.installwizard.InstallWizard | Traceback (most recent call last): File "...\electrum\electrum\base_wizard.py", line 340, in on_device self.plugin.setup_device(device_info, self, purpose) File "...\electrum\electrum\plugins\digitalbitbox\digitalbitbox.py", line 719, in setup_device client.get_xpub("m/44'/0'", 'standard') File "...\electrum\electrum\plugins\digitalbitbox\digitalbitbox.py", line 120, in get_xpub reply = self._get_xpub(bip32_path) File "...\electrum\electrum\plugins\digitalbitbox\digitalbitbox.py", line 114, in _get_xpub if self.check_device_dialog(): File "...\electrum\electrum\plugins\digitalbitbox\digitalbitbox.py", line 223, in check_device_dialog self.recover_or_erase_dialog() # Already seeded File "...\electrum\electrum\plugins\digitalbitbox\digitalbitbox.py", line 244, in recover_or_erase_dialog if not self.dbb_load_backup(): File "...\electrum\electrum\plugins\digitalbitbox\digitalbitbox.py", line 340, in dbb_load_backup raise UserFacingException(backups['error']['message']) electrum.util.UserFacingException: Please insert SD card.
This commit is contained in:
parent
e68b6447cc
commit
c0b170acb7
1 changed files with 5 additions and 1 deletions
|
@ -40,7 +40,7 @@ from .wallet import (Imported_Wallet, Standard_Wallet, Multisig_Wallet,
|
|||
from .storage import WalletStorage, StorageEncryptionVersion
|
||||
from .wallet_db import WalletDB
|
||||
from .i18n import _
|
||||
from .util import UserCancelled, InvalidPassword, WalletFileException
|
||||
from .util import UserCancelled, InvalidPassword, WalletFileException, UserFacingException
|
||||
from .simple_config import SimpleConfig
|
||||
from .plugin import Plugins, HardwarePluginLibraryUnavailable
|
||||
from .logging import Logger
|
||||
|
@ -356,6 +356,10 @@ class BaseWizard(Logger):
|
|||
except (UserCancelled, GoBack):
|
||||
self.choose_hw_device(purpose, storage=storage)
|
||||
return
|
||||
except UserFacingException as e:
|
||||
self.show_error(str(e))
|
||||
self.choose_hw_device(purpose, storage=storage)
|
||||
return
|
||||
except BaseException as e:
|
||||
self.logger.exception('')
|
||||
self.show_error(str(e))
|
||||
|
|
Loading…
Add table
Reference in a new issue