mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-05 05:15:12 +00:00
wizard: fix crash when decrypting wallet hw device
E | __main__ | daemon.run_gui errored Traceback (most recent call last): File ".../electrum/run_electrum", line 379, in <module> d.run_gui(config, plugins) File "...\electrum\electrum\daemon.py", line 522, in run_gui self.gui_object.main() File "...\electrum\electrum\gui\qt\__init__.py", line 362, in main if not self.start_new_window(path, self.config.get('url'), app_is_starting=True): File "...\electrum\electrum\gui\qt\__init__.py", line 246, in wrapper return func(self, *args, **kwargs) File "...\electrum\electrum\gui\qt\__init__.py", line 270, in start_new_window wallet = self._start_wizard_to_select_or_create_wallet(path) File "...\electrum\electrum\gui\qt\__init__.py", line 308, in _start_wizard_to_select_or_create_wallet path, storage = wizard.select_storage(path, self.daemon.get_wallet) File "...\electrum\electrum\gui\qt\installwizard.py", line 334, in select_storage pw_e.clear() File "...\electrum\electrum\gui\qt\util.py", line 759, in clear self.setText(len(self.text()) * " ") RuntimeError: wrapped C/C++ object of type PasswordLineEdit has been deleted
This commit is contained in:
parent
5efaaa523a
commit
01dac92e19
1 changed files with 4 additions and 1 deletions
|
@ -331,7 +331,10 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
|
|||
try:
|
||||
run_user_interaction_loop()
|
||||
finally:
|
||||
pw_e.clear()
|
||||
try:
|
||||
pw_e.clear()
|
||||
except RuntimeError: # wrapped C/C++ object has been deleted.
|
||||
pass # happens when decrypting with hw device
|
||||
|
||||
return temp_storage.path, (temp_storage if temp_storage.file_exists() else None)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue