fix issue #968
This commit is contained in:
@@ -163,7 +163,12 @@ class ElectrumGui:
|
||||
if action is not None:
|
||||
import installwizard
|
||||
wizard = installwizard.InstallWizard(self.config, self.network, storage)
|
||||
wallet = wizard.run(action)
|
||||
try:
|
||||
wallet = wizard.run(action)
|
||||
except BaseException as e:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
QMessageBox.information(None, _('Error'), str(e), _('OK'))
|
||||
return
|
||||
if not wallet:
|
||||
return
|
||||
else:
|
||||
|
||||
@@ -389,13 +389,7 @@ class InstallWizard(QDialog):
|
||||
wallet.add_master_public_key("x3/", xpub3)
|
||||
|
||||
elif action == 'create_accounts':
|
||||
try:
|
||||
wallet.create_main_account(password)
|
||||
except BaseException as e:
|
||||
import traceback
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
QMessageBox.information(None, _('Error'), str(e), _('OK'))
|
||||
return
|
||||
wallet.create_main_account(password)
|
||||
self.waiting_dialog(wallet.synchronize)
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user