1
0

storage: refuse to open newer version wallet files

This is mostly a manual copy of parts of multiple commits from the master branch.
This commit is contained in:
SomberNight
2018-01-12 16:52:36 +01:00
parent 64d998fae8
commit d0f9e20cf7
2 changed files with 14 additions and 4 deletions

View File

@@ -168,7 +168,12 @@ class ElectrumGui:
w.bring_to_top()
break
else:
wallet = self.daemon.load_wallet(path, None)
try:
wallet = self.daemon.load_wallet(path, None)
except BaseException as e:
d = QMessageBox(QMessageBox.Warning, _('Error'), 'Cannot load wallet:\n' + str(e))
d.exec_()
return
if not wallet:
storage = WalletStorage(path)
wizard = InstallWizard(self.config, self.app, self.plugins, storage)