1
0

call super().__init__() for WalletFileException descendants,

qt: handle unfinished wallets when opened via File>Open (ref #8809)
This commit is contained in:
Sander van Grieken
2024-01-15 17:06:44 +01:00
parent d660c57808
commit 57bd291491
2 changed files with 4 additions and 0 deletions

View File

@@ -352,6 +352,8 @@ class ElectrumGui(BaseElectrumGui, Logger):
pass # open with wizard below
except WalletRequiresUpgrade:
pass # open with wizard below
except WalletUnfinished:
pass # open with wizard below
except Exception as e:
self.logger.exception('')
err_text = str(e) if isinstance(e, WalletFileException) else repr(e)

View File

@@ -56,11 +56,13 @@ class WalletRequiresUpgrade(WalletFileException):
class WalletRequiresSplit(WalletFileException):
def __init__(self, split_data):
super().__init__()
self._split_data = split_data
class WalletUnfinished(WalletFileException):
def __init__(self, wallet_db: 'WalletDB'):
super().__init__()
self._wallet_db = wallet_db